Skip to content

Commit

Permalink
maint: tests for mpu_fs
Browse files Browse the repository at this point in the history
- vscode does not like randomized parameters
- add importskip guard
  • Loading branch information
Kirill888 committed May 13, 2024
1 parent 2c0390a commit 841df27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_mpu_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import pytest

_ = pytest.importorskip("odc.geo.cog")

from odc.geo.cog._mpu_fs import MPUFileSink

# pylint: disable=protected-access
Expand All @@ -16,7 +18,7 @@ def slurp(path: Path) -> bytes:
return f.read()


@pytest.mark.parametrize("parts_base", [f"parts-{uuid4().hex[:8]}", None])
@pytest.mark.parametrize("parts_base", [f"parts-3782781", None])
@pytest.mark.parametrize("num_parts", [1, 2, 3, 10])
def test_filesink(tmp_path: Path, parts_base: str | None, num_parts: int):
dst = Path(tmp_path / f"{uuid4().hex}.bin")
Expand Down

0 comments on commit 841df27

Please sign in to comment.