Skip to content

Commit 797b8e7

Browse files
committed
⚗️ [#140] Add get_or_create to factory
1 parent 80d60d0 commit 797b8e7

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)