File: test_connection.py

package info (click to toggle)
python-fakeredis 2.29.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: python: 19,002; sh: 8; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from .base import (
    BaseTest,
    commands,
    values,
    st,
    dbnums,
    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))
    command_strategy_redis_only = commands(st.just("swapdb"), dbnums, dbnums)
    command_strategy = connection_commands | common_commands