Skip to content

Commit

Permalink
refactor: Move OpenAPI-specific filters to a separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed May 8, 2020
1 parent f4a94b0 commit 764a182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -1,8 +1,8 @@
import re
from typing import List, Optional

from .types import Filter
from .utils import force_tuple
from ...types import Filter
from ...utils import force_tuple


def should_skip_method(method: str, pattern: Optional[Filter]) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion src/schemathesis/specs/openapi/schemas.py
Expand Up @@ -8,12 +8,12 @@
from requests.structures import CaseInsensitiveDict

from ...exceptions import InvalidSchema
from ...filters import should_skip_by_operation_id, should_skip_by_tag, should_skip_endpoint, should_skip_method
from ...hooks import HookContext
from ...models import Endpoint, EndpointDefinition, empty_object
from ...schemas import BaseSchema
from ...utils import GenericResponse
from .converter import to_json_schema_recursive
from .filters import should_skip_by_operation_id, should_skip_by_tag, should_skip_endpoint, should_skip_method
from .references import ConvertingResolver
from .security import OpenAPISecurityProcessor, SwaggerSecurityProcessor

Expand Down

0 comments on commit 764a182

Please sign in to comment.