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

joke2k / faker / 3129 / 4
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2020 09:49PM UTC
Files 459
Run time 2min
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

04 Nov 2020 08:59PM UTC coverage: 98.625% (-0.03%) from 98.653%
TOXENV=py35

push

travis-ci

web-flow
Fix generation of names ending with spaces (and more) (#1312)

* Test for checking the formats defined in providers

For each locale, for each provider, search all the definitions of "formats"
and make sure that all the providers in there (e.g. {{group}}) are valid
and do not emit empty strings. Empty strings are allows only if the group
is not surrounded by spaces. This is a quick way to make sure that no
string is generated with "double spaces", starting spaces or ending spaces.

* Remove buggy formats

Those formats have been found by test_providers_formats.py:

```
test_no_invalid_formats[de_AT]
E       AssertionError: Errors:
E          - Attribute {{suffix_male}} provided an invalid value in format '{{first_name_male}} {{last_name}} {{suffix_male}}' from faker.providers.person.de_AT.formats
E          - Attribute {{suffix_male}} provided an invalid value in format '{{prefix_male}} {{first_name_male}} {{last_name}} {{suffix_male}}' from faker.providers.person.de_AT.formats
E          - Attribute {{suffix_female}} provided an invalid value in format '{{first_name_female}} {{last_name}} {{suffix_female}}' from faker.providers.person.de_AT.formats
E          - Attribute {{suffix_female}} provided an invalid value in format '{{prefix_female}} {{first_name_female}} {{last_name}} {{suffix_female}}' from faker.providers.person.de_AT.formats

test_no_invalid_formats[fa_IR]
E       AssertionError: Errors:
E          - Attribute {{suffix}} provided an invalid value in format '{{first_name_female}} {{last_name}} {{suffix}}' from faker.providers.person.fa_IR.formats
E          - Attribute {{suffix}} provided an invalid value in format '{{prefix_female}} {{first_name_female}} {{last_name}} {{suffix}}' from faker.providers.person.fa_IR.formats
E          - Attribute {{suffix}} provided an invalid value in format '{{first_name_male}} {{last_name}} {{suffix}}' from faker.providers.person.fa_IR.formats
E          - Attribute {{suffix}} pr... (continued)

7101 of 7200 relevant lines covered (98.63%)

0.99 hits per line

Source Files on job 3129.4 (TOXENV=py35)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 5
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2955
  • Travis Job 3129.4
  • 4ffbcb95 on github
  • Prev Job for TOXENV=py35 on master (#3127.4)
  • Next Job for TOXENV=py35 on master (#3130.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc