From 083c72a8a7ea86fafa89038996d7048fa34ba5fd Mon Sep 17 00:00:00 2001 From: Kai Schlamp Date: Tue, 19 Mar 2024 22:01:30 +0000 Subject: [PATCH] Make sure factory generates unique metadata key --- radis/reports/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radis/reports/factories.py b/radis/reports/factories.py index 63624e36..1d07d213 100644 --- a/radis/reports/factories.py +++ b/radis/reports/factories.py @@ -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")