Skip to content

Commit

Permalink
flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno committed Jan 6, 2025
1 parent 8b9b131 commit 418b1a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/conferences/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class ConferenceFactory(DjangoModelFactory):
organizer = factory.SubFactory(OrganizerFactory)
name = LanguageFactory("name")
code = factory.Faker("text", max_nb_chars=10)
slug = factory.Sequence(lambda n: "code{}".format(n))
introduction = LanguageFactory("sentence")

start = factory.Faker("past_datetime", tzinfo=UTC)
Expand Down Expand Up @@ -153,7 +153,6 @@ def _after_postgeneration(cls, obj, create, results=None):

class Meta:
model = Conference
django_get_or_create = ("code",)


class TopicFactory(DjangoModelFactory):
Expand Down

0 comments on commit 418b1a9

Please sign in to comment.