Skip to content

Commit

Permalink
Don't combine pytest fixtures and Hypothesis strategies
Browse files Browse the repository at this point in the history
Gives a health error about executors now.
  • Loading branch information
hynek committed Sep 5, 2023
1 parent e9473c8 commit 2708fd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_low_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ def test_illegal_argon2_parameter(self, func):
Type.I,
)

@both_hash_funcs
@given(st.binary(max_size=128))
@given(
st.sampled_from((hash_secret, hash_secret_raw)),
st.binary(max_size=128),
)
def test_hash_fast(self, func, secret):
"""
Hash various secrets as cheaply as possible.
Expand Down

0 comments on commit 2708fd9

Please sign in to comment.