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

joke2k / faker / 2842
96%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2020 04:30PM UTC
Jobs 9
Files 440
Run time 10min
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
2842

push

travis-ci

web-flow
💂 Fix max_value/positive pyfloat interaction (#1218)

* 💂 Fix max_value/positive pyfloat interaction

When pyfloat(max_value=100, positive=True) is called, it sometimes
returns negative numbers, which is unexpected.

To fix it, we just need to "cap" our internal minimum value to zero.

This does leave `pyfloat(max_value=100, min_value=-100, positive=True)`
as a call that secretly moves the min_value up to 0 though.

Fixes #1212.

* 💥 Forbid pyfloat call with incompatible arguments

`pyfloat(positive=True, min_value=-1)` will now throw a ValueError,
since the combination of a request for a positive number, yet a negative
minimum value is probably not what the caller intended.

6842 of 6948 relevant lines covered (98.47%)

4.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2842.1 (TOXENV=flake8) 22 Jul 2020 04:30PM UTC 0
0.0
Travis Job 2842.1
2 2842.2 (TOXENV=checkmanifest) 22 Jul 2020 04:30PM UTC 0
0.0
Travis Job 2842.2
3 2842.3 (TOXENV=isort) 22 Jul 2020 04:30PM UTC 0
0.0
Travis Job 2842.3
4 2842.4 (TOXENV=py35) 22 Jul 2020 04:33PM UTC 0
98.33
Travis Job 2842.4
5 2842.5 (TOXENV=py36) 22 Jul 2020 04:32PM UTC 0
98.38
Travis Job 2842.5
6 2842.6 (TOXENV=py37) 22 Jul 2020 04:33PM UTC 0
98.38
Travis Job 2842.6
7 2842.7 (TOXENV=py38) 22 Jul 2020 04:33PM UTC 0
98.38
Travis Job 2842.7
8 2842.8 (TOXENV=pypy3) 22 Jul 2020 04:38PM UTC 0
98.36
Travis Job 2842.8
9 2842.9 (TOXENV=32bit TEST_32BIT=1) 22 Jul 2020 04:36PM UTC 0
0.0
Travis Job 2842.9
Source Files on build 2842
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2842
  • c2977a3b on github
  • Prev Build on master (#2839)
  • Next Build on master (#2843)
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