Skip to content

Commit

Permalink
Ignore type checking secions, ignore coverage for test_type, added te…
Browse files Browse the repository at this point in the history
…st for remove none
  • Loading branch information
FlavioAmurrioCS authored and EntilZha committed Jun 18, 2024
1 parent ccf0288 commit f001dc9
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 139 deletions.
6 changes: 5 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# .coveragerc
[report]
show_missing = True
show_missing = True
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
\.\.\.
8 changes: 8 additions & 0 deletions functional/test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,14 @@ def test_starmap(self):
self.assertIteratorEqual(expect, result)
self.assert_type(result)

def test_remove_none(self) -> None:
l = [None, -1, 0, None, 10]
expect = [-1, 0, 10]
s = self.seq(l)
result = s.remove_none()
self.assertIteratorEqual(expect, result)
self.assert_type(result)

def test_filter(self):
l = [0, -1, 5, 10]
expect = [5, 10]
Expand Down
Loading

0 comments on commit f001dc9

Please sign in to comment.