Skip to content

Fix phone numbers used in tests#3847

Merged
tillprochaska merged 1 commit intodevelopfrom
fix/test-phone-numbers
Aug 15, 2024
Merged

Fix phone numbers used in tests#3847
tillprochaska merged 1 commit intodevelopfrom
fix/test-phone-numbers

Conversation

@tillprochaska
Copy link
Contributor

This test started to fail with an upgrade of the phonenumbers package (imported via followthemoney) which included updated phone number validation rules. As a result, the phone numbers in this test case didn’t pass validation anymore and were cleaned from the entites created.

At first glance these numbers seemed to be valid German mobile phone numbers and I was worried that there might be a regression in phonenumbers. But according to the International Telecommunication Union, a phone number with the prefix 176 has to be 11 digits long. I adjusted the tests accordingly.

https://www.itu.int/oth/T0202000051/en

This test started to fail with an upgrade of the `phonenumbers` package (imported via `followthemoney`) which included updated phone number validation rules. As a result, the phone numbers in this test case didn’t pass validation anymore and were cleaned from the entites created.

At first glance these numbers seemed to be valid German mobile phone numbers and I was worried that there might be a regression in `phonenumbers`. But according to the International Telecommunication Union, a phone number with the prefix `176` has to be 11 digits long. I adjusted the tests accordingly.

https://www.itu.int/oth/T0202000051/en
@tillprochaska tillprochaska force-pushed the fix/test-phone-numbers branch from ee46f3a to b683010 Compare August 15, 2024 09:43
@tillprochaska tillprochaska merged commit 0b28629 into develop Aug 15, 2024
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.

1 participant