mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-07 20:37:44 +00:00
Fix isort errors
This commit is contained in:
@@ -9,9 +9,10 @@ Warning: It is recommended to use 'decorator' package to create decorators for
|
|||||||
details please check: https://github.com/zalando/connexion/issues/142
|
details please check: https://github.com/zalando/connexion/issues/142
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import connexion
|
|
||||||
import flask
|
import flask
|
||||||
|
|
||||||
|
import connexion
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from decorator import decorator
|
from decorator import decorator
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
Basic example of a resource server
|
Basic example of a resource server
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import connexion
|
|
||||||
import flask
|
import flask
|
||||||
|
|
||||||
|
import connexion
|
||||||
|
|
||||||
|
|
||||||
def get_secret() -> str:
|
def get_secret() -> str:
|
||||||
# the token's uid will be set in request.user
|
# the token's uid will be set in request.user
|
||||||
|
|||||||
@@ -3,9 +3,8 @@ import datetime
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import connexion
|
import connexion
|
||||||
from connexion import NoContent
|
|
||||||
|
|
||||||
import orm
|
import orm
|
||||||
|
from connexion import NoContent
|
||||||
|
|
||||||
db_session = None
|
db_session = None
|
||||||
|
|
||||||
|
|||||||
BIN
tests/.test_api.py.swo
Normal file
BIN
tests/.test_api.py.swo
Normal file
Binary file not shown.
@@ -1,8 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from connexion import NoContent, problem, request
|
|
||||||
from flask import redirect
|
from flask import redirect
|
||||||
|
|
||||||
|
from connexion import NoContent, problem, request
|
||||||
|
|
||||||
|
|
||||||
class DummyClass(object):
|
class DummyClass(object):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import pathlib
|
|||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from connexion.api import Api
|
|
||||||
from connexion.exceptions import InvalidSpecification, ResolverError
|
|
||||||
from swagger_spec_validator.common import SwaggerValidationError
|
from swagger_spec_validator.common import SwaggerValidationError
|
||||||
from yaml import YAMLError
|
from yaml import YAMLError
|
||||||
|
|
||||||
|
from connexion.api import Api
|
||||||
|
from connexion.exceptions import InvalidSpecification, ResolverError
|
||||||
|
|
||||||
TEST_FOLDER = pathlib.Path(__file__).parent
|
TEST_FOLDER = pathlib.Path(__file__).parent
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
from connexion.decorators.parameter import inspect_function_arguments
|
|
||||||
|
|
||||||
import decorator
|
import decorator
|
||||||
|
from connexion.decorators.parameter import inspect_function_arguments
|
||||||
|
|
||||||
|
|
||||||
@decorator.decorator
|
@decorator.decorator
|
||||||
|
|||||||
Reference in New Issue
Block a user