Skip to content

Conversation

@zulquer
Copy link
Collaborator

@zulquer zulquer commented Jul 22, 2025

This pull request introduces a new AddressParser utility class to parse and split addresses into street names and house numbers, along with comprehensive unit tests to validate its functionality. The changes focus on adding the core implementation and ensuring robust testing coverage.

New utility class for address parsing:

  • src/multisafepay/util/address_parser.py: Added the AddressParser class, which includes methods to parse addresses (parse) and extract street and house number components (extract_street_and_apartment). The implementation handles various address formats and edge cases using regular expressions.

Unit tests for the AddressParser:

@zulquer zulquer requested a review from danielcivit July 22, 2025 08:48
@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.48%. Comparing base (7159696) to head (c4b3a0e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
+ Coverage   90.42%   90.48%   +0.06%     
==========================================
  Files         106      107       +1     
  Lines        2307     2322      +15     
==========================================
+ Hits         2086     2101      +15     
  Misses        221      221              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielcivit danielcivit merged commit 14f1825 into master Jul 24, 2025
6 checks passed
@danielcivit danielcivit deleted the PTHMINT-77 branch July 24, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants