Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Jan 15, 2025
1 parent 38be842 commit 396f2ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion envergo/hedges/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class Meta:

@factory.post_generation
def hedges(obj, create, extracted, **kwargs):
obj.data = [hedge.toDict() for hedge in extracted]
if extracted:
obj.data = [hedge.toDict() for hedge in extracted]


class SpeciesFactory(DjangoModelFactory):
Expand Down

0 comments on commit 396f2ba

Please sign in to comment.