Context
As part of our Contributor Roadmap (Level 1: Quick Wins), expanding realistic test fixtures ensures FreshData's financial data repairs remain robust across localized conventions without regressing.
Task
Add a synthetic financial ledger fixture in tests/fixtures/ demonstrating localized accounting conventions, such as parenthesized accounting negatives (e.g. (1,250.00)) and European currency formatting (e.g. EUR prefixes and mixed decimal separators).
Acceptance Criteria
Pointers
New to the codebase? Comment here and we'll help you get set up! You can also check our First Contribution Guide.
Context
As part of our Contributor Roadmap (Level 1: Quick Wins), expanding realistic test fixtures ensures FreshData's financial data repairs remain robust across localized conventions without regressing.
Task
Add a synthetic financial ledger fixture in
tests/fixtures/demonstrating localized accounting conventions, such as parenthesized accounting negatives (e.g.(1,250.00)) and European currency formatting (e.g.EURprefixes and mixed decimal separators).Acceptance Criteria
tests/fixtures/financial_ledger.csvwith 20–50 rows of synthetic transaction records.tests/fixtures/financial_ledger.expectations.jsonspecifying expected column dtypes and target values.(1,250.00), currency symbols (EUR,$), thousands commas, and whitespace.tests/test_currency_locale.pyor a dedicated test verifyingfd.clean()handles the fixture accurately.pytest --no-cov.Pointers
tests/fixtures/locale_numbers.csvandtests/fixtures/locale_numbers.expectations.jsonbenchmarks/fixtures/finance.pyNew to the codebase? Comment here and we'll help you get set up! You can also check our First Contribution Guide.