8000 Fix and uncomment monetary amount `RegexEntityExtractor` tests · Issue #2356 · topoteretes/cognee · GitHub
[go: up one dir, main page]

Skip to content

Fix and uncomment monetary amount RegexEntityExtractor tests #2356

@ajuijas

Description

@ajuijas

(Created as part of the codebase TODO/FIXME audit #2316)

In cognee/tests/unit/entity_extraction/regex_entity_extraction_test.py:86, the test_extract_money test block is currently commented out with a TODO noting that the regex for extracting monetary values is failing.

Because it is commented out, financial extraction functionality regressions cannot be caught by CI.

Acceptance Criteria:

  • Locate the configured regex dictionary/configuration used by RegexEntityExtractor for the MONEY entity type.
  • Update the regular expression to correctly match internationally scaled monetary amounts (e.g., $1,299.99 and €1.045,00) as specified in the test string.
  • Uncomment the test block in test_extract_money and ensure it passes successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0