File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 44
55from datetime import UTC
66from datetime import datetime
7+ from pathlib import Path
78
89import pytest
910from pydantic import ValidationError
2122from mdio .schemas .dtype import StructuredType
2223
2324
24- def test_make_toy_dataset () -> None :
25+ def test_make_toy_dataset (tmp_path : Path ) -> None :
2526 """Test that make_toy_dataset returns a Dataset object using the factory pattern."""
2627 # Create dataset using factory
2728 template = SCHEMA_TEMPLATE_MAP [MDIOSchemaType .SEISMIC_3D_POST_STACK_GENERIC ]
@@ -52,7 +53,8 @@ def test_make_toy_dataset() -> None:
5253 print ("\n Dataset Schema JSON:" )
5354 print (ds .model_dump_json (indent = 2 ))
5455
55- write_mdio_metadata (ds , "test_toy_dataset.mdio" )
56+ mdio_path = tmp_path / "test_toy_dataset.mdio"
57+ write_mdio_metadata (ds , str (mdio_path ))
5658
5759 # Verify metadata
5860 assert ds .metadata .name == "campos_3d"
You can’t perform that action at this time.
0 commit comments