Skip to content

Commit 9072a69

Browse files
committed
fix(spp_demo,spp_mis_demo_v2): fix CI failures - test assertions and prettier formatting
1 parent cc6f8f6 commit 9072a69

3 files changed

Lines changed: 151 additions & 144 deletions

File tree

spp_demo/tests/test_demo_stories.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,15 @@ def test_22_localized_stories_preserve_structure(self):
431431

432432
# Journey, profile (except names), demo_points should be unchanged
433433
self.assertEqual(lk_maria["journey"], orig_maria["journey"])
434-
self.assertEqual(lk_maria["profile"]["age"], orig_maria["profile"]["age"])
435-
self.assertEqual(lk_maria["profile"]["gender"], orig_maria["profile"]["gender"])
434+
# maria_santos is a household - check head's age/gender are preserved
435+
self.assertEqual(
436+
lk_maria["profile"]["head"]["age"],
437+
orig_maria["profile"]["head"]["age"],
438+
)
439+
self.assertEqual(
440+
lk_maria["profile"]["head"]["gender"],
441+
orig_maria["profile"]["head"]["gender"],
442+
)
436443

437444
def test_23_localized_stories_no_name_collisions(self):
438445
"""Test that localized names don't collide within a locale."""

0 commit comments

Comments
 (0)