aboutsummaryrefslogtreecommitdiff
path: root/test_utils/managers/thl
diff options
context:
space:
mode:
Diffstat (limited to 'test_utils/managers/thl')
-rw-r--r--test_utils/managers/thl/conftest.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test_utils/managers/thl/conftest.py b/test_utils/managers/thl/conftest.py
index 21b2007..d40b7d2 100644
--- a/test_utils/managers/thl/conftest.py
+++ b/test_utils/managers/thl/conftest.py
@@ -20,6 +20,12 @@ from generalresearch.managers.thl.session import SessionManager
from generalresearch.managers.thl.task_adjustment import (
TaskAdjustmentManager,
)
+from generalresearch.managers.thl.user_manager.mysql_user_manager import (
+ MysqlUserManager,
+)
+from generalresearch.managers.thl.user_manager.redis_user_manager import (
+ RedisUserManager,
+)
from generalresearch.managers.thl.user_manager.user_manager import (
UserManager,
)
@@ -161,6 +167,16 @@ def user_manager(
@pytest.fixture(scope="session")
+def mysql_user_manager(thl_web_rw: PostgresConfig) -> MysqlUserManager:
+ return MysqlUserManager(pg_config=thl_web_rw, is_read_replica=False)
+
+
+@pytest.fixture(scope="session")
+def redis_user_manager(thl_redis_config: RedisConfig) -> RedisUserManager:
+ return RedisUserManager(redis_dsn=thl_redis_config)
+
+
+@pytest.fixture(scope="session")
def user_metadata_manager(thl_web_rw: PostgresConfig) -> UserMetadataManager:
assert thl_web_rw.dsn
assert thl_web_rw.dsn.path