@@ -46,17 +46,17 @@ def test_not_base_eligible(faker: Faker):
4646 )
4747
4848
49- @pytest .mark .skip (reason = "This test is temporarily ignored. Reason : magic cohort" )
5049@pytest .mark .parametrize (
51- ("person_cohorts" , "iteration_cohorts" , "test_comment" ),
50+ ("person_cohorts" , "iteration_cohorts" , "status" , " test_comment" ),
5251 [
53- (["cohort1" ], ["elid_all_people" ], "Only magic cohort present" ),
54- (["cohort1" ], ["elid_all_people" , "cohort1" ], "Magic cohort with other cohorts" ),
55- ([], ["elid_all_people" ], "Only magic cohort present without " ),
52+ (["cohort1" ], ["elid_all_people" ], Status .actionable , "Only magic cohort present" ),
53+ (["cohort1" ], ["elid_all_people" , "cohort1" ], Status .actionable , "Magic cohort with other cohorts" ),
54+ (["cohort1" ], ["cohort2" ], Status .not_eligible , "No magic cohort. No matching person cohort" ),
55+ ([], ["elid_all_people" ], Status .actionable , "No person cohorts. Only magic cohort present" ),
5656 ],
5757)
5858def test_base_eligible_with_when_magic_cohort_is_present (
59- faker : Faker , person_cohorts : list [str ], iteration_cohorts : list [str ], test_comment : str
59+ faker : Faker , person_cohorts : list [str ], iteration_cohorts : list [str ], status : Status , test_comment : str
6060):
6161 # Given
6262 nhs_number = NHSNumber (faker .nhs_number ())
@@ -86,7 +86,7 @@ def test_base_eligible_with_when_magic_cohort_is_present(
8686 assert_that (
8787 actual ,
8888 is_eligibility_status ().with_conditions (
89- has_item (is_condition ().with_condition_name (ConditionName ("RSV" )).and_status (Status . actionable ))
89+ has_item (is_condition ().with_condition_name (ConditionName ("RSV" )).and_status (status ))
9090 ),
9191 test_comment ,
9292 )
0 commit comments