Skip to content

Commit

Permalink
Parameterize Python tests for both RESP2 & RESP3. (#910)
Browse files Browse the repository at this point in the history
* Parameterize Python tests for both RESP2 & RESP3.

* use split parameters
  • Loading branch information
nihohit authored Feb 10, 2024
1 parent 44674b7 commit 6446967
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 38 deletions.
4 changes: 2 additions & 2 deletions python/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ def pytest_sessionfinish(session, exitstatus):

@pytest.fixture()
async def redis_client(
request, cluster_mode: bool
request, cluster_mode: bool, protocol: ProtocolVersion
) -> AsyncGenerator[TRedisClient, None]:
"Get async socket client for tests"
client = await create_client(request, cluster_mode)
client = await create_client(request, cluster_mode, protocol=protocol)
yield client
await client.close()

Expand Down
Loading

0 comments on commit 6446967

Please sign in to comment.