Update tests for feeding frequency changes (#135)

This commit is contained in:
Christopher C. Wells 2020-03-17 05:03:09 -07:00
parent 7fda7beabf
commit 4915f809e6
2 changed files with 16 additions and 4 deletions

View File

@ -88,10 +88,22 @@ class TemplateTagsTestCase(TestCase):
'stat': timezone.timedelta(0, 44228, 571429),
'type': 'duration'
},
# Statistics date basis is not particularly strong to these feeding
# examples.
# TODO: Improve testing of feeding frequency statistics.
{
'title': 'Feeding frequency',
'type': 'duration',
'stat': 0.0,
'title': 'Feeding frequency (past 3 days)'
},
{
'type': 'duration',
'stat': 0.0,
'title': 'Feeding frequency (past 2 weeks)'},
{
'type': 'duration',
'stat': timezone.timedelta(0, 7200),
'type': 'duration'
'title': 'Feeding frequency'
},
{
'title': 'Average nap duration',