Skip to content

Commit

Permalink
test: hash expire tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Sep 22, 2024
1 parent 135f578 commit 26f5a3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,14 @@ class BaseTest:

command_strategy: SearchStrategy
create_command_strategy = st.nothing()
command_strategy_redis7 = st.nothing()

@pytest.mark.slow
def test(self):
class Machine(CommonMachine):
create_command_strategy = self.create_command_strategy
command_strategy = (
self.command_strategy
if hasattr(self, "command_strategy_redis7")
else (self.command_strategy | self.command_strategy_redis7)
self.command_strategy | self.command_strategy_redis7 if redis_ver >= (7,) else self.command_strategy
)

# hypothesis.settings.register_profile("debug", max_examples=10, verbosity=hypothesis.Verbosity.debug)
Expand Down

0 comments on commit 26f5a3a

Please sign in to comment.