Skip to content

Commit

Permalink
update test for invoice date
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsajan0 committed Sep 11, 2024
1 parent 082b276 commit dd095e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hypha/apply/projects/tests/factories.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import decimal

import factory
Expand Down Expand Up @@ -177,7 +178,7 @@ class Meta:
class InvoiceFactory(factory.django.DjangoModelFactory):
invoice_number = factory.Faker("name")
invoice_amount = decimal.Decimal("10")
invoice_date = factory.LazyFunction(timezone.now)
invoice_date = factory.LazyFunction(datetime.date.today)
project = factory.SubFactory(ProjectFactory)
by = factory.SubFactory(UserFactory)
document = factory.django.FileField()
Expand Down

0 comments on commit dd095e3

Please sign in to comment.