From 828ea75b8434ca28d625e62eec4b44a9ce54aaac Mon Sep 17 00:00:00 2001 From: Pawan Verma Date: Fri, 13 Dec 2024 14:27:41 +0530 Subject: [PATCH] Fix unique key violation error in tests --- commcare_connect/opportunity/tests/factories.py | 1 + 1 file changed, 1 insertion(+) diff --git a/commcare_connect/opportunity/tests/factories.py b/commcare_connect/opportunity/tests/factories.py index 1a7cb7df..e66faa5d 100644 --- a/commcare_connect/opportunity/tests/factories.py +++ b/commcare_connect/opportunity/tests/factories.py @@ -68,6 +68,7 @@ class OpportunityAccessFactory(DjangoModelFactory): class Meta: model = "opportunity.OpportunityAccess" + django_get_or_create = ["opportunity", "user"] class OpportunityVerificationFlagsFactory(DjangoModelFactory):