diff --git a/tests/core/test_viewset.py b/tests/core/test_viewset.py index d262493..dd77e73 100644 --- a/tests/core/test_viewset.py +++ b/tests/core/test_viewset.py @@ -1,7 +1,7 @@ """Module to test Viewset functionality and features""" -import pytest import json +import pytest from tests.support.sample_app import app from tests.support.sample_app.entities import Dog from tests.support.sample_app.entities import Human diff --git a/tests/support/sample_app/blueprint.py b/tests/support/sample_app/blueprint.py index b4ac7fa..eb5ec02 100644 --- a/tests/support/sample_app/blueprint.py +++ b/tests/support/sample_app/blueprint.py @@ -1,10 +1,5 @@ """ Blueprints of the sample app""" from flask import Blueprint - -from protean_flask import Protean -from protean_flask.core.views import ShowAPIResource -from protean_flask.core.viewsets import GenericAPIResourceSet - from tests.support.sample_app.entities import Dog from tests.support.sample_app.entities import Human from tests.support.sample_app.serializers import DogSerializer @@ -12,6 +7,10 @@ from tests.support.sample_app.usecases import ListMyDogsRequestObject from tests.support.sample_app.usecases import ListMyDogsUsecase +from protean_flask import Protean +from protean_flask.core.views import ShowAPIResource +from protean_flask.core.viewsets import GenericAPIResourceSet + blueprint = Blueprint('test_blueprint', __name__) api_bp = Protean(blueprint)