diff --git a/src/argus/notificationprofile/factories.py b/src/argus/notificationprofile/factories.py index e663fb68a..d02ab7159 100644 --- a/src/argus/notificationprofile/factories.py +++ b/src/argus/notificationprofile/factories.py @@ -34,7 +34,7 @@ class Meta: timeslot = factory.SubFactory(TimeslotFactory) start = factory.Faker("time_object") end = factory.Faker("time_object") - days = factory.Faker("random_sample", elements=[models.TimeRecurrence.Day]) + days = factory.Faker("random_sample", elements=[x for x, _ in models.TimeRecurrence.Day.choices]) class MinimalTimeRecurrenceFactory(TimeRecurrenceFactory):