From 23498e0a9889a0ce977581150a3cb70c5179d657 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 23:40:09 +0000 Subject: [PATCH] fix: address code review feedback on spelling Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- app/utils/classification_rules.py | 2 +- tests/test_classification_rules.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/classification_rules.py b/app/utils/classification_rules.py index 4c8f61c2..d8f440ab 100644 --- a/app/utils/classification_rules.py +++ b/app/utils/classification_rules.py @@ -31,7 +31,7 @@ logger = logging.getLogger(__name__) # Pre-built categories # --------------------------------------------------------------------------- -#: Canonical category names recognised by the system. Users may also define +#: Canonical category names recognized by the system. Users may also define #: their own categories via custom rules. BUILTIN_CATEGORIES: dict[str, str] = { "invoice": "Invoice", diff --git a/tests/test_classification_rules.py b/tests/test_classification_rules.py index 1005022e..a4bacaec 100644 --- a/tests/test_classification_rules.py +++ b/tests/test_classification_rules.py @@ -104,7 +104,7 @@ class TestFilenamePatternMatching: result = classify_document(filename="Payment_Receipt.pdf") assert result.category == "receipt" - def test_unrecognised_filename(self): + def test_unrecognized_filename(self): """A generic filename with no keywords should return 'unknown'.""" result = classify_document(filename="document_12345.pdf") assert result.category == "unknown"