We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370d827 commit f076795Copy full SHA for f076795
1 file changed
tests/test_dataframe_compatibility.py
@@ -77,7 +77,7 @@ def test_LO_init_missingGetValueError_lengthFunc() -> None:
77
)
78
79
80
-def test_LO_init_invalidLengthValueError() -> None:
+def test_LO_init_invalidLengthValueError_negative() -> None:
81
with pytest.raises(ValueError):
82
ParallelProcessing(
83
function=lambda x: x,
@@ -86,6 +86,15 @@ def test_LO_init_invalidLengthValueError() -> None:
86
87
88
89
+def test_LO_init_invalidLengthValueError_zero() -> None:
90
+ with pytest.raises(AssertionError):
91
+ ParallelProcessing(
92
+ function=lambda x: x,
93
+ dataset=DummyLengthOnly(0),
94
+ _get_value=lambda *_: _,
95
+ )
96
+
97
98
def test_LO_init_nonIntLengthError_numLike() -> None:
99
with pytest.raises(TypeError):
100
0 commit comments