From 11ba4807c46428db222bbcc5f4d88dce11cddaaf Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Wed, 23 Jan 2019 16:57:56 -0500 Subject: [PATCH] Use LazyFunction to return unique data --- tests/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/factories.py b/tests/factories.py index f18e2332..274ed171 100644 --- a/tests/factories.py +++ b/tests/factories.py @@ -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):