Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test phonenumber handling of phone number extensions #584

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

francoisfreitag
Copy link
Collaborator

No description provided.

@francoisfreitag francoisfreitag merged commit 79bad4c into stefanfoulis:main Nov 16, 2023
50 checks passed
@francoisfreitag francoisfreitag deleted the testext branch November 16, 2023 15:10
@francoisfreitag
Copy link
Collaborator Author

Refs #581

with self.subTest(data):
phone = PhoneNumber.from_string(data)
self.assertEqual(phone.as_international, "+33 6 12 34 56 78 ext. 456")
self.assertEqual(phone.as_rfc3966, "tel:+33-6-12-34-56-78;ext=456")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to point out that national does support extensions, so it might make sense to add

self.assertEqual(phone.as_national, "'06 12 34 56 78 ext. 456'")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks! Added as #585

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.

None yet

2 participants