From 51e5fe0425ee3a1dba528a7faa430b9997d958ba Mon Sep 17 00:00:00 2001 From: Jim Bacon Date: Thu, 21 Nov 2024 12:01:15 +0000 Subject: [PATCH] Improve an error message --- app/rule/rule_repo.py | 2 +- test/verify/test_verify.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/rule/rule_repo.py b/app/rule/rule_repo.py index 8dd9819..2d0478c 100644 --- a/app/rule/rule_repo.py +++ b/app/rule/rule_repo.py @@ -450,7 +450,7 @@ def run_difficulty( id_difficulty, messages = difficulty_repo.run(record) if id_difficulty is None: record.result = 'warn' - messages.append("*:*: No rules exist for this taxon.") + messages.append("No rules exist for this taxon.") record.id_difficulty = id_difficulty record.messages.extend(messages) else: diff --git a/test/verify/test_verify.py b/test/verify/test_verify.py index 3d029fe..85ccd0a 100644 --- a/test/verify/test_verify.py +++ b/test/verify/test_verify.py @@ -55,7 +55,7 @@ def test_valid_record(self, client: TestClient, mocker): assert 'id_difficulty' not in verified assert len(verified['messages']) == 1 assert verified['messages'][0] == ( - "*:*: No rules exist for this taxon.") + "No rules exist for this taxon.") # Update to test against specific org_group. rules = OrgGroupRules(