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

---------

Co-authored-by: Roman Gershman <roman@dragonflydb.io>
2025-04-23 18:11:37 +03:00

13 lines
420 B
Python

import hypothesis.strategies as st
from .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