From 0920d5d16dc463163162b4f1270d77fb9758a10a Mon Sep 17 00:00:00 2001 From: Alan Liddell Date: Mon, 27 Nov 2023 11:14:49 -0500 Subject: [PATCH] Ignore files created by `test_storage_capabilities`. --- .gitignore | 1 + tests/test_basic.py | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 64e3b95..e411cc0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ imgui.ini Testing *.zarr *.tif +*.bin *.json Cargo.lock diff --git a/tests/test_basic.py b/tests/test_basic.py index 162e352..76d187f 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -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}, @@ -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, @@ -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"}