Fixes after running & fixing TOXENV=isort-check tox

This commit is contained in:
Jens Finkhaeuser
2016-09-13 16:24:28 +02:00
parent 7b7b11d023
commit 74cec244b4
12 changed files with 23 additions and 24 deletions

View File

@@ -9,9 +9,8 @@ Warning: It is recommended to use 'decorator' package to create decorators for
details please check: https://github.com/zalando/connexion/issues/142
'''
import flask
import connexion
import flask
try:
from decorator import decorator

View File

@@ -3,9 +3,8 @@
Basic example of a resource server
'''
import flask
import connexion
import flask
def get_secret() -> str:

View File

@@ -3,8 +3,8 @@ import datetime
import logging
import connexion
import orm
from connexion import NoContent
import orm
db_session = None

View File

@@ -1,9 +1,9 @@
import pytest
from conftest import TEST_FOLDER, build_app_from_fixture
from connexion.app import App
from connexion.exceptions import InvalidSpecification
import pytest
from conftest import TEST_FOLDER, build_app_from_fixture
def test_app_with_relative_path(simple_api_spec_dir):
# Create the app with a realative path and run the test_app testcase below.

View File

@@ -2,10 +2,10 @@ import json
import logging
import pathlib
import pytest
from connexion.app import App
import pytest
logging.basicConfig(level=logging.DEBUG)
TEST_FOLDER = pathlib.Path(__file__).parent

View File

@@ -1,8 +1,7 @@
#!/usr/bin/env python3
from flask import redirect
from connexion import NoContent, problem, request
from flask import redirect
class DummyClass(object):

View File

@@ -3,12 +3,12 @@
import pathlib
import tempfile
import pytest
from connexion.api import Api
from connexion.exceptions import InvalidSpecification, ResolverError
from swagger_spec_validator.common import SwaggerValidationError
from yaml import YAMLError
from connexion.api import Api
from connexion.exceptions import InvalidSpecification, ResolverError
import pytest
TEST_FOLDER = pathlib.Path(__file__).parent

View File

@@ -1,13 +1,14 @@
import pathlib
import types
import pytest
from connexion.decorators.security import security_passthrough, verify_oauth
from connexion.exceptions import InvalidSpecification
from connexion.operation import Operation
from connexion.resolver import Resolver
import pytest
TEST_FOLDER = pathlib.Path(__file__).parent
DEFINITIONS = {'new_stack': {'required': ['image_version', 'keep_stacks', 'new_traffic', 'senza_yaml'],

View File

@@ -1,6 +1,7 @@
import decorator
from connexion.decorators.parameter import inspect_function_arguments
import decorator
@decorator.decorator
def the_decorator(f, *args, **kwargs):

View File

@@ -1,10 +1,10 @@
import pytest
import connexion.app
from connexion.exceptions import ResolverError
from connexion.operation import Operation
from connexion.resolver import Resolver, RestyResolver
import pytest
PARAMETER_DEFINITIONS = {'myparam': {'in': 'path', 'type': 'integer'}}

View File

@@ -1,9 +1,9 @@
import math
import pytest
import connexion.app
import connexion.utils as utils
import pytest
from mock import MagicMock

View File

@@ -2,10 +2,10 @@ import json
import logging
import pathlib
import pytest
from connexion.app import App
import pytest
logging.basicConfig(level=logging.DEBUG)
TEST_FOLDER = pathlib.Path(__file__).parent