Use LazyFunction to return unique data
This commit is contained in:
parent
9f2419d334
commit
11ba4807c4
@ -381,7 +381,7 @@ class AttachmentFactory(Base):
|
||||
model = Attachment
|
||||
|
||||
filename = factory.Faker("domain_word")
|
||||
object_name = factory.Faker("domain_word")
|
||||
object_name = factory.LazyFunction(lambda *args: uuid4().hex)
|
||||
|
||||
|
||||
class TaskOrderFactory(Base):
|
||||
|
Loading…
x
Reference in New Issue
Block a user