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

joke2k / faker / 3129
96%

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

pending completion
3129

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)

1 of 1 new or added line in 1 file covered. (100.0%)

7099 of 7194 relevant lines covered (98.68%)

4.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3129.1 (TOXENV=flake8) 04 Nov 2020 09:47PM UTC 0
0.0
Travis Job 3129.1
2 3129.2 (TOXENV=checkmanifest) 04 Nov 2020 09:46PM UTC 0
0.0
Travis Job 3129.2
3 3129.3 (TOXENV=isort) 04 Nov 2020 09:47PM UTC 0
0.0
Travis Job 3129.3
4 3129.4 (TOXENV=py35) 04 Nov 2020 09:49PM UTC 0
98.63
Travis Job 3129.4
5 3129.5 (TOXENV=py36) 04 Nov 2020 10:28PM UTC 0
98.67
Travis Job 3129.5
6 3129.6 (TOXENV=py37) 04 Nov 2020 10:28PM UTC 0
98.65
Travis Job 3129.6
7 3129.7 (TOXENV=py38) 04 Nov 2020 10:28PM UTC 0
98.69
Travis Job 3129.7
8 3129.8 (TOXENV=pypy3) 04 Nov 2020 10:33PM UTC 0
98.64
Travis Job 3129.8
9 3129.9 (TOXENV=32bit TEST_32BIT=1) 04 Nov 2020 11:08PM UTC 0
0.0
Travis Job 3129.9
Source Files on build 3129
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3129
  • 4ffbcb95 on github
  • Prev Build on master (#3127)
  • Next Build on master (#3130)
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