diff options
author | Marcelo Trylesinski <marcelotryle@gmail.com> | 2022-02-02 01:07:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 16:07:40 -0800 |
commit | 73bb55301586a32e88866b529a7432a73ea69ef7 (patch) | |
tree | f30204eff24ceb7c4b8668c6e66e995534b480eb /tests | |
parent | aad5ece47bf12bceff4296516f23171a06b34bb5 (diff) | |
download | python-coveragepy-git-73bb55301586a32e88866b529a7432a73ea69ef7.tar.gz |
fix: use --precision argument when checking --fail-under (#1317)
* build: windows 3.11.0a4 started failing to save the pip cache
* Fix precision argument when using cmd
* Remove print
* Remove isort things
* last isort...
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmdline.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index a10bdc5f..d4fe830a 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -1136,6 +1136,9 @@ class CoverageReportingFake: ((20, 30, 40, 50, 60), 61, "lcov", 2), # Command-line overrides configuration. ((20, 30, 40, 50, 60), 19, "report --fail-under=21", 2), + # Precision defined + ((20, 30, 40, 50, 60), None, "report --fail-under=20.1 --precision=1", 2), + ((20, 30, 40, 50, 60), None, "report --fail-under=19.9 --precision=1", 0), ]) def test_fail_under(results, fail_under, cmd, ret): cov = CoverageReportingFake(*results) |