• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

magfest / ubersystem / 4266 / 2
46%
master: 46%

Build:
DEFAULT BRANCH: master
Ran 12 Sep 2017 01:00PM UTC
Files 66
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Sep 2017 12:56PM UTC coverage: 63.85% (+0.1%) from 63.733%
TOX_ENV=py34

push

travis-ci

RobRuana
Fix #1578, use phonenumbers library for validation (#2858)

* Use Google's phone number library for validation

Fixes #1578

* Simplify error messages for phone validation

The phonenumbers library can easily handle international numbers, so we
should feel free to encourage users to input them. Therefore, there
does not appear to be any meaningful difference between the two states
of COLLECT_FULL_ADDRESS. This commit combines the two messages.

We use past tense here rather than an imperative, because this error
case only occurs if the user has already entered a value.

* Add phonenumbers 8.8.1 to requirements.txt

* Ensure US phone numbers contain area code

This adds a condition to _invalid_phone_number, ensuring that US phone
numbers contain an area code. The phonenumbers library considers 7-digit
US numbers to be acceptable, which is technically correct, but not what
we want here.

This commit also adds comments to this function.

* Add unit test for phone number validation

This adds basic test coverage over our phone number validation. We test
simple numbers, US and international

5426 of 8498 relevant lines covered (63.85%)

0.64 hits per line

Source Files on job 4266.2 (TOX_ENV=py34)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4266
  • Travis Job 4266.2
  • 765447f7 on github
  • Prev Job for TOX_ENV=py34 on master (#4262.2)
  • Next Job for TOX_ENV=py34 on master (#4268.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc