Skip to content

Commit c4648d1

Browse files
authored
Merge pull request #334 from maykinmedia/fix/140-fix-flaky-tests
⚗️ [#140] Add get_or_create to factory
2 parents 80d60d0 + 797b8e7 commit c4648d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/src/openarchiefbeheer/destruction/tests/factories.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class DestructionListFactory(factory.django.DjangoModelFactory):
1212

1313
class Meta:
1414
model = "destruction.DestructionList"
15+
django_get_or_create = ("name",)
1516

1617

1718
class DestructionListAssigneeFactory(factory.django.DjangoModelFactory):

0 commit comments

Comments
 (0)