Skip to content

Commit 9b45625

Browse files
committed
switch test to warn
1 parent 643caf2 commit 9b45625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/acquisition/flusurv/test_flusurv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def test_groupids_to_name(self):
379379

380380
with self.assertRaisesRegex(ValueError, "Ageid cannot be 6"):
381381
api_fetcher._groupid_to_name(6, 0, 0, 0)
382-
with self.assertRaisesRegex(ValueError, "Expect at least three of four group ids to be 0"):
382+
with self.assertWarnsRegex(Warning, "We expect an obs to represent only a single demographic group at a time"):
383383
api_fetcher._groupid_to_name(1, 1, 0, 0)
384384
api_fetcher._groupid_to_name(0, 1, 1, 0)
385385
api_fetcher._groupid_to_name(1, 1, 1, 1)

0 commit comments

Comments
 (0)