|
14 | 14 |
|
15 | 15 | import pytest |
16 | 16 | import pytest_asyncio |
17 | | -from valkey import __version__ as VALKEY_VERSION |
18 | 17 | import valkey.asyncio as valkey |
19 | | -from valkey.typing import KeyT, StreamIdT, StringTypeT |
20 | 18 | from packaging.version import Version |
21 | 19 | from tests.conftest import ( |
22 | 20 | assert_geo_is_close, |
|
28 | 26 | skip_if_server_version_lt, |
29 | 27 | skip_unless_arch_bits, |
30 | 28 | ) |
| 29 | +from valkey import __version__ as VALKEY_VERSION |
31 | 30 | from valkey import exceptions |
32 | 31 | from valkey._parsers.helpers import ( |
33 | 32 | _ValkeyCallbacks, |
|
36 | 35 | parse_info, |
37 | 36 | ) |
38 | 37 | from valkey.client import EMPTY_RESPONSE, NEVER_DECODE |
| 38 | +from valkey.typing import KeyT, StreamIdT, StringTypeT |
39 | 39 |
|
40 | 40 | if sys.version_info >= (3, 11, 3): |
41 | 41 | from asyncio import timeout as async_timeout |
@@ -514,7 +514,9 @@ async def test_client_capa_redirect_on_replica(self, r: valkey.Valkey): |
514 | 514 | info = await replica.info("replication") |
515 | 515 | assert info["role"] in ("slave", "replica") |
516 | 516 | expected_host = info["master_host"] |
517 | | - expected_port = int(info["master_port"]) # type: ignore[arg-type] # TODO: fix |
| 517 | + expected_port = int( |
| 518 | + info["master_port"] # type: ignore[arg-type] # TODO: fix |
| 519 | + ) |
518 | 520 |
|
519 | 521 | with pytest.raises(valkey.RedirectError) as exc_get: |
520 | 522 | await replica.get(key) |
@@ -566,10 +568,16 @@ async def test_config_get(self, r: valkey.Valkey): |
566 | 568 | @pytest.mark.onlynoncluster |
567 | 569 | async def test_config_resetstat(self, r: valkey.Valkey): |
568 | 570 | await r.ping() |
569 | | - prior_commands_processed = int((await r.info())["total_commands_processed"]) # type: ignore[arg-type] # TODO: fix |
| 571 | + # TODO: fix |
| 572 | + prior_commands_processed = int( |
| 573 | + (await r.info())["total_commands_processed"] # type: ignore[arg-type] |
| 574 | + ) |
570 | 575 | assert prior_commands_processed >= 1 |
571 | 576 | await r.config_resetstat() |
572 | | - reset_commands_processed = int((await r.info())["total_commands_processed"]) # type: ignore[arg-type] # TODO: fix |
| 577 | + # TODO: fix |
| 578 | + reset_commands_processed = int( |
| 579 | + (await r.info())["total_commands_processed"] # type: ignore[arg-type] |
| 580 | + ) |
573 | 581 | assert reset_commands_processed < prior_commands_processed |
574 | 582 |
|
575 | 583 | async def test_config_set(self, r: valkey.Valkey): |
|
0 commit comments