From 02eefca8135c30709433559530da5fb094d4f5d9 Mon Sep 17 00:00:00 2001 From: Subhash Bhushan Date: Mon, 29 Apr 2019 18:15:47 -0700 Subject: [PATCH] Fixes to pass `tox -e check` --- tests/core/test_viewset.py | 2 +- tests/support/sample_app/blueprint.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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)