dragonfly/tests/fakeredis/test/test_hypothesis/test_connection.py
Daniel M 6f0072e462
Fix test hypothesis (#4380)
* fix:test-hypothesis

---------

Co-authored-by: Roman Gershman <roman@dragonflydb.io>
2025-01-17 07:59:44 +02:00

13 lines
440 B
Python

import hypothesis.strategies as st
from test.test_hypothesis.base import BaseTest, commands, values, common_commands
class TestConnection(BaseTest):
# TODO: tests for select
connection_commands = (
commands(st.just("echo"), values)
| commands(st.just("ping"), st.lists(values, max_size=2))
# | commands(st.just("swapdb"), dbnums, dbnums)
)
command_strategy = connection_commands | common_commands