Skip to content

Commit

Permalink
Make sure factory generates unique metadata key
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Mar 19, 2024
1 parent 77dcef8 commit 083c72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radis/reports/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MetadataFactory(BaseDjangoModelFactory[Metadata]):
class Meta:
model = Metadata

key = factory.Faker("word")
key = factory.Sequence(lambda n: f"{fake.word()}_{n}")
value = factory.Faker("word")


Expand Down

0 comments on commit 083c72a

Please sign in to comment.