Skip to content

Commit

Permalink
Avoid key violations on derived path in archive|package resource
Browse files Browse the repository at this point in the history
  • Loading branch information
marksparkza committed Aug 22, 2024
1 parent 1568e18 commit 029d2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 029d2cd

Please sign in to comment.