Skip to content

Commit

Permalink
refactor: Remove not needed code for GraphQL schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Dec 20, 2020
1 parent 7bb50bc commit f510a39
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/schemathesis/specs/graphql/schemas.py
@@ -1,5 +1,5 @@
from functools import partial
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, cast
from typing import Any, Dict, Generator, List, Optional, Tuple, cast
from urllib.parse import urlsplit

import attr
Expand Down Expand Up @@ -57,8 +57,7 @@ def verbose_name(self) -> str:

@property
def base_path(self) -> str:
if self.base_url:
return urlsplit(self.base_url).path
# There is no public API to use the `base_url` attribute; therefore, this code is limited
return self._get_base_path()

def _get_base_path(self) -> str:
Expand All @@ -81,6 +80,3 @@ def get_case_strategy(

def get_strategies_from_examples(self, endpoint: Endpoint) -> List[SearchStrategy[Case]]:
return []

def get_parameter_serializer(self, endpoint: Endpoint, location: str) -> Optional[Callable]:
return None

0 comments on commit f510a39

Please sign in to comment.