Fix minor linting issues

This commit is contained in:
Christopher Charbonneau Wells 2020-03-30 05:25:57 -07:00 committed by GitHub
parent dfd89ae339
commit cbf6f0ce1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -93,7 +93,8 @@ class InitialValuesTestCase(FormsTestCaseBase):
birth_date=timezone.localdate()
)
start_time = timezone.localtime() - timezone.timedelta(hours=4)
end_time = timezone.localtime() - timezone.timedelta(hours=3, minutes=30)
end_time = timezone.localtime() - timezone.timedelta(hours=3,
minutes=30)
f_one = models.Feeding.objects.create(
child=self.child,
start=start_time,
@ -129,7 +130,8 @@ class InitialValuesTestCase(FormsTestCaseBase):
page = self.c.get('/feedings/add/?child={}'.format(child_three.slug))
self.assertEqual(page.context['form'].initial['type'], f_three.type)
self.assertEqual(page.context['form'].initial['method'], f_three.method)
self.assertEqual(page.context['form'].initial['method'],
f_three.method)
def test_timer_set(self):
self.timer.stop()