Skip to content

Commit 168b57e

Browse files
committed
Update
1 parent 92b5003 commit 168b57e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/_commands/test_common_helpers.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,15 @@ def test_get_dataset_temp_mmap_path__reuse(
786786
pass
787787

788788

789+
@pytest.mark.parametrize(
790+
"resume_interrupted, overwrite",
791+
[
792+
(True, False),
793+
(False, True),
794+
],
795+
)
789796
def test_get_dataset_temp_mmap_path__resume_interrupted_overwrite(
790-
tmp_path: Path, mocker: MockerFixture, resume_interrupted: bool, overwrite: bool
797+
tmp_path: Path, resume_interrupted: bool, overwrite: bool
791798
) -> None:
792799
"""Tests that no error is raised if resume_interrupted or overwrite is set to True."""
793800
data_path = tmp_path / "data"
@@ -806,9 +813,7 @@ def test_get_dataset_temp_mmap_path__resume_interrupted_overwrite(
806813
pass
807814

808815

809-
pytest.mark.skipif(sys.platform.startswith("win"), reason="No error on Windows")
810-
811-
816+
@pytest.mark.skipif(sys.platform.startswith("win"), reason="No error on Windows")
812817
def test_get_dataset_temp_mmap_path__error(tmp_path: Path) -> None:
813818
data_path = tmp_path / "data"
814819
out_path = tmp_path / "out"

0 commit comments

Comments
 (0)