Skip to content

Commit 418b1a9

Browse files
committed
flaky test
1 parent 8b9b131 commit 418b1a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/conferences/tests/factories.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ConferenceFactory(DjangoModelFactory):
2626
organizer = factory.SubFactory(OrganizerFactory)
2727
name = LanguageFactory("name")
28-
code = factory.Faker("text", max_nb_chars=10)
28+
slug = factory.Sequence(lambda n: "code{}".format(n))
2929
introduction = LanguageFactory("sentence")
3030

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

154154
class Meta:
155155
model = Conference
156-
django_get_or_create = ("code",)
157156

158157

159158
class TopicFactory(DjangoModelFactory):

0 commit comments

Comments
 (0)