Skip to content

Commit

Permalink
test: Add test for 0
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Mar 16, 2024
1 parent 370d827 commit f076795
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_dataframe_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_LO_init_missingGetValueError_lengthFunc() -> None:
)


def test_LO_init_invalidLengthValueError() -> None:
def test_LO_init_invalidLengthValueError_negative() -> None:
with pytest.raises(ValueError):
ParallelProcessing(
function=lambda x: x,
Expand All @@ -86,6 +86,15 @@ def test_LO_init_invalidLengthValueError() -> None:
)


def test_LO_init_invalidLengthValueError_zero() -> None:
with pytest.raises(AssertionError):
ParallelProcessing(
function=lambda x: x,
dataset=DummyLengthOnly(0),
_get_value=lambda *_: _,
)


def test_LO_init_nonIntLengthError_numLike() -> None:
with pytest.raises(TypeError):
ParallelProcessing(
Expand Down

0 comments on commit f076795

Please sign in to comment.