Skip to content

Commit

Permalink
Ignore files created by test_storage_capabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Nov 27, 2023
1 parent 63ebfae commit 0920d5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ imgui.ini
Testing
*.zarr
*.tif
*.bin
*.json
Cargo.lock

Expand Down
14 changes: 8 additions & 6 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,13 +815,14 @@ def test_simulated_camera_capabilities(


@pytest.mark.parametrize(
("descriptor", "chunking", "sharding", "multiscale"),
("descriptor", "extension", "chunking", "sharding", "multiscale"),
[
("raw", None, None, False),
("trash", None, None, False),
("tiff", None, None, False),
("tiff-json", None, None, False),
("raw", "bin", None, None, False),
("trash", "", None, None, False),
("tiff", "tif", None, None, False),
("tiff-json", "tif", None, None, False),
(
"zarr",
"zarr",
{
"width": {"low": 32, "high": 65535},
Expand All @@ -837,6 +838,7 @@ def test_storage_capabilities(
runtime: Runtime,
request: pytest.FixtureRequest,
descriptor: str,
extension: str,
chunking: Optional[Dict[str, Any]],
sharding: Optional[Dict[str, Any]],
multiscale: bool,
Expand All @@ -847,7 +849,7 @@ def test_storage_capabilities(
p.video[0].storage.identifier = dm.select(DeviceKind.Storage, descriptor)

# FIXME (aliddell): hack to get the storage capabilities to be populated
p.video[0].storage.settings.filename = f"{request.node.name}.out"
p.video[0].storage.settings.filename = f"{request.node.name}.{extension}"

p.video[0].storage.settings.external_metadata_json = json.dumps(
{"hello": "world"}
Expand Down

0 comments on commit 0920d5d

Please sign in to comment.