Skip to content

Commit

Permalink
Fix types and pass hypothesis envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
aciba90 committed Jun 9, 2022
1 parent 815548e commit 5fcdc82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
}
try:
for name, kwargs in _hypothesis_profiles.items():
settings.register_profile(name, **kwargs)
settings.register_profile(name, parent=None, **kwargs)
except TypeError:
# Drop except when hypothesis>=3.47
# https://hypothesis.readthedocs.io/en/latest/changes.html#v3-47-0
for name, kwargs in _hypothesis_profiles.items():
settings.register_profile(name, settings(**kwargs))
settings.register_profile(name, settings(**kwargs)) # type: ignore
settings.load_profile(os.getenv("HYPOTHESIS_PROFILE", "default"))
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ deps =
{[lowest-supported-deps]deps}
httpretty==0.8.14
commands = {[testenv:py3]commands}
passenv = HYPOTHESIS_PROFILE

[testenv:lowest-supported-dev]
# The oldest httpretty version to work with Python 3.7+ is 0.9.5,
Expand All @@ -147,6 +148,7 @@ deps =
{[lowest-supported-deps]deps}
httpretty==0.9.5
commands = {[testenv:py3]commands}
passenv = HYPOTHESIS_PROFILE

[testenv:doc]
deps =
Expand Down

0 comments on commit 5fcdc82

Please sign in to comment.