aboutsummaryrefslogtreecommitdiff
path: root/test_utils/models/thl/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_utils/models/thl/conftest.py')
-rw-r--r--test_utils/models/thl/conftest.py10
1 files changed, 3 insertions, 7 deletions
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)
# --- ---