updated core pump test case for start/end/duration

This commit is contained in:
John Merlie 2023-07-02 12:22:03 -04:00 committed by Christopher Charbonneau Wells
parent 0697565ea1
commit 77622c4924
1 changed files with 4 additions and 1 deletions

View File

@ -183,9 +183,12 @@ class PumpingTestCase(TestCase):
self.child = models.Child.objects.create(
first_name="First", last_name="Last", birth_date=timezone.localdate()
)
start = timezone.localtime() - timezone.timedelta(days=1)
end = start + timezone.timedelta(minutes=14)
self.pumping = models.Pumping.objects.create(
child=self.child,
time=timezone.localtime() - timezone.timedelta(days=1),
start=start,
end=end,
amount=98.6,
)