aboutsummaryrefslogtreecommitdiff
path: root/test_utils
diff options
context:
space:
mode:
authorstuppie2026-09-07 10:43:20 -0600
committerstuppie2026-09-07 10:43:20 -0600
commit9002e4ea94ce790210ce42f4950a9e63ee8ca27b (patch)
tree79e1390f94ab0f883ab31c96cd15ed04aaaf33f4 /test_utils
parentc25a7351eeb6be4a998348a8cfc96bc4f965b96c (diff)
downloadgeneralresearch-9002e4ea94ce790210ce42f4950a9e63ee8ca27b.tar.gz
generalresearch-9002e4ea94ce790210ce42f4950a9e63ee8ca27b.zip
fix more tests
Diffstat (limited to 'test_utils')
-rw-r--r--test_utils/managers/thl/conftest.py2
-rw-r--r--test_utils/models/thl/conftest.py10
2 files changed, 4 insertions, 8 deletions
diff --git a/test_utils/managers/thl/conftest.py b/test_utils/managers/thl/conftest.py
index 98dd574..355a39d 100644
--- a/test_utils/managers/thl/conftest.py
+++ b/test_utils/managers/thl/conftest.py
@@ -240,7 +240,7 @@ def mysql_user_manager(thl_web_rw: PostgresConfig) -> MysqlUserManager:
@pytest.fixture(scope="session")
def redis_user_manager(thl_redis_config: RedisConfig) -> RedisUserManager:
- return RedisUserManager(redis_dsn=thl_redis_config)
+ return RedisUserManager(redis_dsn=thl_redis_config.dsn)
@pytest.fixture(scope="session")
diff --git a/test_utils/models/thl/conftest.py b/test_utils/models/thl/conftest.py
index fe2b4f5..376891c 100644
--- a/test_utils/models/thl/conftest.py
+++ b/test_utils/models/thl/conftest.py
@@ -496,6 +496,7 @@ def unsaved_ip_geoname(ip_geoname_factory: Callable[..., IPGeoname]) -> IPGeonam
# --- IP Information ---
+
@pytest.fixture
def ip_information_factory(
ip_information_manager: IPInformationManager,
@@ -833,13 +834,8 @@ def audit_log_factory(audit_log_manager: AuditLogManager) -> Callable[..., Audit
@pytest.fixture()
-def audit_log(auditlog_factory: Callable[..., AuditLog]) -> AuditLog:
- return auditlog_factory(save=True)
-
-
-@pytest.fixture()
-def unsaved_audit_log(auditlog_factory: Callable[..., AuditLog]) -> AuditLog:
- return auditlog_factory(save=False)
+def audit_log(audit_log_factory: Callable[..., AuditLog], user: User) -> AuditLog:
+ return audit_log_factory(user_id=user.user_id)
# --- ---