Skip to content

Commit f94b932

Browse files
committed
Fix imports from wrong module (for tests_sync)
1 parent 42a91d4 commit f94b932

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

tests/test_hash_model.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# We need to run this check as sync code (during tests) even in async mode
2424
# because we call it in the top-level module scope.
2525
from redis_om import has_redisearch
26-
from tests.conftest import py_test_mark_asyncio
26+
27+
from .conftest import py_test_mark_asyncio
2728

2829

2930
if not has_redisearch():

tests/test_json_model.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# We need to run this check as sync code (during tests) even in async mode
2626
# because we call it in the top-level module scope.
2727
from redis_om import has_redis_json
28-
from tests.conftest import py_test_mark_asyncio
28+
29+
from .conftest import py_test_mark_asyncio
2930

3031

3132
if not has_redis_json():

tests/test_oss_redis_features.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
from pydantic import ValidationError
1010

1111
from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError
12-
from tests.conftest import py_test_mark_asyncio
12+
13+
from .conftest import py_test_mark_asyncio
1314

1415

1516
today = datetime.date.today()

0 commit comments

Comments
 (0)