Skip to content

Commit

Permalink
Add minor exclusions for redict, valkey & dragonfly
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Dec 5, 2024
1 parent 5a13c39 commit 6a4e40b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/commands/test_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ async def test_acl_load(self, client):

@pytest.mark.min_server_version("6.0.0")
@pytest.mark.nokeydb
@pytest.mark.novalkey
@pytest.mark.noredict
@pytest.mark.nocluster
async def test_acl_log(self, client, _s):
with pytest.warns(UserWarning):
Expand Down
2 changes: 2 additions & 0 deletions tests/commands/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ async def test_client_setname(self, client, _s):
assert await client.client_getname() == _s("redis_py_test")

@pytest.mark.nokeydb
@pytest.mark.novalkey
@pytest.mark.noredict
async def test_client_pause(self, client, event_loop):
key = "key_should_expire"
another_client = coredis.Redis(loop=event_loop)
Expand Down
2 changes: 2 additions & 0 deletions tests/commands/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ async def test_latency_doctor(self, client, _s):
@pytest.mark.nocluster
@pytest.mark.nokeydb
@pytest.mark.noredict
@pytest.mark.novalkey
async def test_latency_all(self, client, _s):
await client.execute_command(b"debug", "sleep", 0.05)
history = await client.latency_history("command")
Expand All @@ -297,6 +298,7 @@ async def test_latency_all(self, client, _s):
@pytest.mark.nocluster
@pytest.mark.nokeydb
@pytest.mark.noredict
@pytest.mark.novalkey
async def test_latency_graph(self, client, _s):
await client.execute_command(b"debug", "sleep", 0.05)
graph = await client.latency_graph("command")
Expand Down
4 changes: 4 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ async def test_unknown_command(self, client):
with pytest.raises(UnknownCommandError):
await client.execute_command(b"BOGUS")

@pytest.mark.nodragonfly
@pytest.mark.min_server_version("6.2.0")
@pytest.mark.parametrize("client_arguments", [({"db": 1})])
async def test_select_database(self, client, client_arguments):
assert (await client.client_info())["db"] == 1

@pytest.mark.nodragonfly
@pytest.mark.min_server_version("6.2.0")
@pytest.mark.parametrize("client_arguments", [({"client_name": "coredis"})])
async def test_set_client_name(self, client, client_arguments):
Expand All @@ -97,6 +99,7 @@ async def test_noreply_client(self, client, cloner, _s):
assert not await client.get("fubar")
assert not await noreply.ping()

@pytest.mark.nodragonfly
async def test_noreply_context(self, client, _s):
with client.ignore_replies():
assert not await client.set("fubar", 1)
Expand Down Expand Up @@ -131,6 +134,7 @@ async def test_blocking_task_cancellation(self, client, _s):
async with async_timeout.timeout(0.1):
assert _s("PONG") == await client.ping()

@pytest.mark.nodragonfly
async def test_concurrent_initialization(self, client, mocker):
assert await client.client_kill(skipme=False)
client.connection_pool.reset()
Expand Down

0 comments on commit 6a4e40b

Please sign in to comment.