[Answered ]-How to test phonenumber_field.modelfields.PhoneNumberField

1👍

No, You should not write the unit tests for the packages you install using pip.

If you want to still test the PhoneNumberField then make a set of the valid and invalid phone numbers and test with it.

  • Valid Numbers for PhoneNumberField:
 +91 1234567890
 +917456987451
 +91-5689741236
  • Invalid Numbers for PhoneNumberField:
 7894561230
 +6985471230
 +9-56457895412

Leave a comment