Skip to content

Commit f5a9057

Browse files
committed
Fix: Update unit tests to make exemption_filename a list
- This change updates the unit tests to reflect the change in the `exemption_filename` field from a string to a list in the archive rules configuration. - All tests now correctly handle the `exemption_filename` as a list, ensuring consistency with the updated configuration. - All tests pass successfully, confirming that the changes are correctly implemented.
1 parent fb6c1c7 commit f5a9057

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,13 @@ def test_load_archive_rules_success(self):
499499
"archive_threshold": 365,
500500
"notification_period": 30,
501501
"notification_issue_tag": "archive-notice",
502-
"exemption_filename": "DO_NOT_ARCHIVE",
502+
"exemption_filename": ["DO_NOT_ARCHIVE"],
503503
"maximum_notifications": 5,
504504
}
505505

506506
result = load_archive_rules(archive_rules)
507507

508-
assert result == (365, 30, "archive-notice", "DO_NOT_ARCHIVE", 5)
508+
assert result == (365, 30, "archive-notice", ["DO_NOT_ARCHIVE"], 5)
509509

510510
def test_load_archive_rules_missing_key(self):
511511
archive_rules = {
@@ -526,7 +526,7 @@ def test_load_archive_rules_invalid_value(self):
526526
"archive_threshold": "not_an_int",
527527
"notification_period": 30,
528528
"notification_issue_tag": "archive-notice",
529-
"exemption_filename": "DO_NOT_ARCHIVE",
529+
"exemption_filename": ["DO_NOT_ARCHIVE"],
530530
"maximum_notifications": 5,
531531
}
532532

0 commit comments

Comments
 (0)