Skip to content

Commit

Permalink
chore: Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Sep 18, 2020
1 parent a02b63b commit d25f670
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/schemathesis/cli/__init__.py
Expand Up @@ -6,19 +6,17 @@

import click
import hypothesis
import requests
import yaml

from .. import checks as checks_module
from .. import models, runner
from .. import runner
from .. import targets as targets_module
from ..fixups import ALL_FIXUPS
from ..hooks import GLOBAL_HOOK_DISPATCHER, HookContext, HookDispatcher, HookScope
from ..models import CheckFunction
from ..runner import DEFAULT_STATEFUL_RECURSION_LIMIT, events
from ..targets import Target
from ..types import Filter
from ..utils import WSGIResponse
from . import callbacks, cassettes, output
from .context import ExecutionContext
from .handlers import EventHandler
Expand Down
2 changes: 1 addition & 1 deletion src/schemathesis/fixups/__init__.py
@@ -1,4 +1,4 @@
from typing import Iterable, List, Optional
from typing import Iterable, Optional

from . import fast_api

Expand Down
6 changes: 3 additions & 3 deletions test/apps/utils.py
Expand Up @@ -53,9 +53,9 @@ def make_openapi_schema(endpoints: Tuple[str, ...], version: OpenAPIVersion = Op
then the app will contain GET /success and GET /failure
"""
return {OpenAPIVersion("2.0"): _make_openapi_2_schema, OpenAPIVersion("3.0"): _make_openapi_3_schema,}[
version
](endpoints)
return {OpenAPIVersion("2.0"): _make_openapi_2_schema, OpenAPIVersion("3.0"): _make_openapi_3_schema}[version](
endpoints
)


def make_node_definition(reference):
Expand Down
3 changes: 2 additions & 1 deletion test/test_loaders.py
Expand Up @@ -67,7 +67,8 @@ def test_operation_id(operation_id):


def test_number_deserializing(testdir):
# When numbers in schema are written in scientific notation but without a dot (achieved by dumping the schema with json.dumps)
# When numbers in schema are written in scientific notation but without a dot
# (achieved by dumping the schema with json.dumps)
schema = {
"openapi": "3.0.2",
"info": {"title": "Test", "description": "Test", "version": "0.1.0"},
Expand Down

0 comments on commit d25f670

Please sign in to comment.