Skip to content

Commit

Permalink
Ignorining coverage warnings was a bad idea.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Dec 20, 2023
1 parent 7895b1f commit 4c30b3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions tests/test_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ def test_uniq():
assert list(() | pipe.uniq) == []


def test_take_zero():
assert list([1, 2, 3] | pipe.take(0)) == []


def test_take_one():
assert list([1, 2, 3] | pipe.take(1)) == [1]


def test_empty_iterable():
assert list([] | pipe.take(999)) == []

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude_lines =
if __name__ == .__main__.:

[tox]
envlist = py3{8,9,10,11,12,13}, flake8, mypy, black, pylint, coverage
envlist = py3{8,9,10,11,12,13}, flake8, black, pylint, coverage
isolated_build = True

[testenv]
Expand All @@ -29,7 +29,7 @@ setenv =

[testenv:coverage]
deps = coverage
depends = py38, py39, py310, py311, py312
depends = py38, py39, py310, py311, py312, py313
parallel_show_output = True
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
Expand Down

0 comments on commit 4c30b3a

Please sign in to comment.