Skip to content

Commit

Permalink
client: use pytest in sys.modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Sep 1, 2022
1 parent 913ff46 commit e492d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def __init__(
raise ValueError(f"{self.url} not a valid URL (one of {VALID_URLS})")

retries, max_retries = 0, 3
is_mock_test = 'unittest' in sys.modules and self.protocol == "http"
is_mock_test = 'pytest' in sys.modules and self.protocol == "http"

if is_mock_test:
now = datetime.datetime.now()
Expand Down

0 comments on commit e492d26

Please sign in to comment.