Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
myxor authored and cdubz committed Apr 2, 2022
1 parent 9e86f08 commit 84d2415
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dashboard/tests/tests_templatetags.py
Expand Up @@ -164,6 +164,19 @@ def test_card_sleep_naps_day(self):
def test_card_statistics(self):
data = cards.card_statistics(self.context, self.child)
stats = [
# Statistics date basis is not particularly strong to these diaper change
# examples.
# TODO: Improve testing of diaper change frequency statistics.
{
"type": "duration",
"stat": 0.0,
"title": "Diaper change frequency (past 3 days)",
},
{
"type": "duration",
"stat": 0.0,
"title": "Diaper change frequency (past 2 weeks)",
},
{
"title": "Diaper change frequency",
"stat": timezone.timedelta(0, 44228, 571429),
Expand Down

0 comments on commit 84d2415

Please sign in to comment.