Skip to content

Commit

Permalink
Amend TimeRecurrenceFactory to work with ArrayField
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Jan 31, 2024
1 parent 1c83441 commit b8c70ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/argus/notificationprofile/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b8c70ab

Please sign in to comment.