From 67579ffaad017d07385479ab346f3316b2e3180c Mon Sep 17 00:00:00 2001 From: rgraber Date: Wed, 4 Sep 2024 13:24:40 -0400 Subject: [PATCH] fixup!: fix test --- kobo/apps/audit_log/tests/test_one_time_auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kobo/apps/audit_log/tests/test_one_time_auth.py b/kobo/apps/audit_log/tests/test_one_time_auth.py index 205709c2e3..fa1fa0c342 100644 --- a/kobo/apps/audit_log/tests/test_one_time_auth.py +++ b/kobo/apps/audit_log/tests/test_one_time_auth.py @@ -8,6 +8,7 @@ from trench.utils import get_mfa_model from kobo.apps.audit_log.models import AuditAction, AuditLog +from kobo.apps.audit_log.tests.test_utils import skip_all_signals from kobo.apps.kobo_auth.shortcuts import User from kobo.apps.openrosa.apps.main.models import UserProfile from kpi.models import AuthorizedApplication @@ -152,8 +153,9 @@ def side_effect(request): action=AuditAction.AUTH, metadata__auth_type='submission', ).exists() + # this may create 2 logs because of submission groups, + # so just make sure the log we care about exists self.assertTrue(log_exists) - self.assertEqual(AuditLog.objects.count(), 1) def test_authorized_application_auth_creates_log(self): app: AuthorizedApplication = AuthorizedApplication(name='Auth app')