Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coredis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def __init__(
@override
async def _connect(self) -> ByteStream:
with fail_after(self._connect_timeout):
connection = await connect_tcp(self.host, self.port)
connection: ByteStream = await connect_tcp(self.host, self.port)
if self.ssl_context:
connection = await TLSStream.wrap(
connection,
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[pytest]
anyio_mode = auto
testpaths = tests
addopts =
--verbose
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from coredis.exceptions import AuthenticationError, AuthorizationError, ResponseError
from tests.conftest import targets

pytestmark = pytest.mark.anyio


@pytest.fixture(autouse=True, scope="function")
async def teardown(client):
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_bitmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from coredis.exceptions import CommandSyntaxError, ReadOnlyError, RedisError
from tests.conftest import targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from coredis.typing import KeyT, RedisValueT, StringT
from tests.conftest import targets

pytestmark = pytest.mark.anyio

library_definition = """#!lua name=coredis

local function echo_key(keys, args)
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from coredis.exceptions import DataError, NoKeyError, ResponseError
from tests.conftest import targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from coredis.exceptions import CommandSyntaxError, DataError
from tests.conftest import server_deprecation_warning, targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from coredis.exceptions import CommandSyntaxError
from tests.conftest import server_deprecation_warning, targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_hyperloglog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from tests.conftest import targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from coredis._utils import gather
from tests.conftest import server_deprecation_warning, targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from coredis.typing import RedisCommand
from tests.conftest import targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from tests.conftest import targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_sorted_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from coredis.exceptions import CommandSyntaxError, DataError
from tests.conftest import server_deprecation_warning, targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
)
from tests.conftest import targets

pytestmark = pytest.mark.anyio


async def get_stream_message(client, stream, message_id):
"Fetch a stream message and format it as a (message_id, fields) pair"
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from coredis.exceptions import CommandSyntaxError
from tests.conftest import server_deprecation_warning, targets

pytestmark = pytest.mark.anyio


@targets(
"redis_basic",
Expand Down
2 changes: 0 additions & 2 deletions tests/commands/test_vector_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from coredis.exceptions import CommandSyntaxError, ResponseError
from tests.conftest import targets

pytestmark = pytest.mark.anyio


@pytest.fixture
async def sample_data(client):
Expand Down
Loading
Loading