Skip to content

Commit 50668e8

Browse files
committed
eli-579 amending error message match now that the invalid date format syntax has changed. Going to loop back round and check if we need to specifically re-enable what it was actually testing
1 parent 8f45ba6 commit 50668e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/services/calculators/test_eligibility_calculator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,8 @@ def test_eligibility_status_with_invalid_tokens_raises_attribute_error(faker: Fa
14361436

14371437
calculator = EligibilityCalculator(person_rows, campaign_configs)
14381438

1439-
with pytest.raises(ValueError, match="Invalid token."):
1439+
# INVALID_DATE_FORMAT is now parsed as a function name and raises unknown function error
1440+
with pytest.raises(ValueError, match="Unknown function 'INVALID_DATE_FORMAT'"):
14401441
calculator.get_eligibility_status("Y", ["ALL"], "ALL")
14411442

14421443

0 commit comments

Comments
 (0)