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

joke2k / faker / 2842 / 8
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2020 04:38PM UTC
Files 440
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

22 Jul 2020 04:29PM UTC coverage: 98.361% (+0.06%) from 98.302%
TOXENV=pypy3

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.

6840 of 6954 relevant lines covered (98.36%)

0.98 hits per line

Source Files on job 2842.8 (TOXENV=pypy3)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2697
  • Travis Job 2842.8
  • c2977a3b on github
  • Prev Job for TOXENV=pypy3 on master (#2839.8)
  • Next Job for TOXENV=pypy3 on master (#2843.8)
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