Skip to content

Commit fdcbe7e

Browse files
one more test for description based on priority
1 parent 83ab6bc commit fdcbe7e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

tests/fixtures/builders/model/rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ class Rsv75to79CohortFactory(IterationCohortFactory):
8686
cohort_group = rules.CohortGroup("rsv_age_range")
8787
positive_description = rules.Description("rsv_age_range positive description")
8888
negative_description = rules.Description("rsv_age_range negative description")
89-
priority = 1
89+
priority = 2
9090

9191

9292
class RsvPretendClinicalCohortFactory(IterationCohortFactory):
9393
cohort_label = rules.CohortLabel("rsv_pretend_clinical_cohort")
9494
cohort_group = rules.CohortGroup("rsv_clinical_cohort")
9595
positive_description = rules.Description("rsv_clinical_cohort positive description")
9696
negative_description = rules.Description("rsv_clinical_cohort negative description")
97-
priority = 1
97+
priority = 3
9898

9999

100100
# Iteration rule factories

tests/unit/services/calculators/test_eligibility_calculator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,11 @@ def test_grouped_description_for_multiple_clinical_risk_cohort_if_best_status_is
12461246
"rsv_age_range positive description 1",
12471247
"status - actionable",
12481248
),
1249+
(
1250+
person_rows_builder(nhs_number="123", cohorts=["rsv_75to79_2024"], postcode="hp"),
1251+
"rsv_age_range positive description 2",
1252+
"rsv_75to79_2024 - actionable and rsv_75_rolling is not eligible",
1253+
),
12491254
],
12501255
)
12511256
def test_grouped_description_if_the_cohorts_in_group_have_different_descriptions(

0 commit comments

Comments
 (0)