Skip to content

Commit

Permalink
avoid duplicate key error (#5291)
Browse files Browse the repository at this point in the history
  • Loading branch information
chopkinsmade committed Mar 26, 2024
1 parent c5ae3e8 commit 8d1968c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub/export_win/test/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class Meta:
class HVCFactory(factory.django.DjangoModelFactory):
"""HVC factory."""

financial_year = factory.fuzzy.FuzzyInteger(2013, 2050, 1)
financial_year = factory.Sequence(lambda n: n)

class Meta:
model = 'export_win.HVC'

0 comments on commit 8d1968c

Please sign in to comment.