Skip to content

Commit efb05a7

Browse files
committed
Tweaked a factory to make duplicate list names less likely
- Legacy-Id: 14874
1 parent 327ffb6 commit efb05a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/mailinglists/factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ListFactory(factory.DjangoModelFactory):
1111
class Meta:
1212
model = List
1313

14-
name = factory.Faker('word')
14+
name = factory.Sequence(lambda n: "list-name-%s" % n)
1515
description = factory.Faker('sentence', nb_words=10)
1616
advertised = factory.LazyAttribute(lambda obj: random.randint(0, 1))
1717

0 commit comments

Comments
 (0)