mirror of https://github.com/snachodog/mybuddy.git
updated core pump test case for start/end/duration
This commit is contained in:
parent
0697565ea1
commit
77622c4924
|
@ -183,9 +183,12 @@ class PumpingTestCase(TestCase):
|
||||||
self.child = models.Child.objects.create(
|
self.child = models.Child.objects.create(
|
||||||
first_name="First", last_name="Last", birth_date=timezone.localdate()
|
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(
|
self.pumping = models.Pumping.objects.create(
|
||||||
child=self.child,
|
child=self.child,
|
||||||
time=timezone.localtime() - timezone.timedelta(days=1),
|
start=start,
|
||||||
|
end=end,
|
||||||
amount=98.6,
|
amount=98.6,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue