diff options
| author | stuppie | 2026-09-07 10:43:20 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-07 10:43:20 -0600 |
| commit | 9002e4ea94ce790210ce42f4950a9e63ee8ca27b (patch) | |
| tree | 79e1390f94ab0f883ab31c96cd15ed04aaaf33f4 /test_utils/models/thl/conftest.py | |
| parent | c25a7351eeb6be4a998348a8cfc96bc4f965b96c (diff) | |
| download | generalresearch-9002e4ea94ce790210ce42f4950a9e63ee8ca27b.tar.gz generalresearch-9002e4ea94ce790210ce42f4950a9e63ee8ca27b.zip | |
fix more tests
Diffstat (limited to 'test_utils/models/thl/conftest.py')
| -rw-r--r-- | test_utils/models/thl/conftest.py | 10 |
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) # --- --- |
