This commit is contained in:
Marco H 2022-04-02 12:11:17 +02:00 committed by Christopher Charbonneau Wells
parent 9e86f08430
commit 84d2415605
1 changed files with 13 additions and 0 deletions

View File

@ -164,6 +164,19 @@ class TemplateTagsTestCase(TestCase):
def test_card_statistics(self): def test_card_statistics(self):
data = cards.card_statistics(self.context, self.child) data = cards.card_statistics(self.context, self.child)
stats = [ 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", "title": "Diaper change frequency",
"stat": timezone.timedelta(0, 44228, 571429), "stat": timezone.timedelta(0, 44228, 571429),