From 029d2cdf3a99b177ade94ad46dd5143ff3a71ab5 Mon Sep 17 00:00:00 2001 From: Mark Jacobson <52427991+marksparkza@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:16:32 +0200 Subject: [PATCH] Avoid key violations on derived path in archive|package resource --- test/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/factories.py b/test/factories.py index e9a28a3..974ee7d 100644 --- a/test/factories.py +++ b/test/factories.py @@ -224,7 +224,7 @@ class Meta: id = factory.Faker('uuid4') title = factory.Faker('catch_phrase') description = factory.Faker('sentence') - filename = factory.Faker('file_name') + filename = factory.Sequence(lambda n: f'{fake.file_name()}.{n}') mimetype = factory.Faker('mime_type') size = factory.LazyFunction(lambda: randint(1, sys.maxsize)) md5 = factory.Faker('md5')