@@ -1443,6 +1443,13 @@ def test_cohort_group_descriptions_are_selected_based_on_priority_when_cohorts_h
14431443 Status .not_eligible ,
14441444 "if group has one cohort, with no description, expect no description" ,
14451445 ),
1446+ (
1447+ person_rows_builder ("123" , postcode = "SW19" , cohorts = ["rsv_75to79_2024" , "rsv_75_rolling" ], de = False ),
1448+ [rule_builder .Rsv75to79CohortFactory .build (negative_description = None , priority = 2 )],
1449+ [("rsv_age_range" , "" )],
1450+ Status .not_eligible ,
1451+ "if group has one cohort, with no description, expect no description" ,
1452+ ),
14461453 (
14471454 person_rows_builder ("123" , postcode = "HP1" , cohorts = ["rsv_75to79_2024" , "rsv_75_rolling" ], de = True ),
14481455 [rule_builder .Rsv75to79CohortFactory .build (positive_description = None , priority = 2 )],
@@ -1470,6 +1477,19 @@ def test_cohort_group_descriptions_are_selected_based_on_priority_when_cohorts_h
14701477 Status .not_eligible ,
14711478 "if group has more than one cohort, at least one has description, expect first non empty description" ,
14721479 ),
1480+ (
1481+ person_rows_builder ("123" , postcode = "SW19" , cohorts = ["rsv_75to79_2024" , "rsv_75_rolling" ], de = False ),
1482+ [
1483+ rule_builder .Rsv75to79CohortFactory .build (priority = 2 , negative_description = None ),
1484+ rule_builder .Rsv75RollingCohortFactory .build (priority = 3 , negative_description = "rsv age range -ve 1" ),
1485+ rule_builder .Rsv75RollingCohortFactory .build (
1486+ cohort_label = "rsv_75_rolling_2" , priority = 4 , negative_description = "rsv age range -ve 2"
1487+ ),
1488+ ],
1489+ [("rsv_age_range" , "rsv age range -ve 1" )],
1490+ Status .not_eligible ,
1491+ "if group has more than one cohort, at least one has description, expect first non empty description" ,
1492+ ),
14731493 (
14741494 person_rows_builder ("123" , postcode = "HP1" , cohorts = ["rsv_75to79_2024" , "rsv_75_rolling" ], de = True ),
14751495 [
0 commit comments