We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d70b26b commit a19d09aCopy full SHA for a19d09a
1 file changed
tests/uijson_test.py
@@ -16,6 +16,7 @@
16
import numpy as np
17
import pytest
18
from geoapps_utils.driver.data import BaseData
19
+from geoapps_utils.run import load_ui_json_as_dict
20
from geoh5py import Workspace
21
from geoh5py.ui_json import InputFile
22
from geoh5py.ui_json.annotations import Deprecated
@@ -357,3 +358,11 @@ def test_legacy_uijson(tmp_path: Path, caplog):
357
358
assert "The Batch2D classes will be deprecated" in caplog.text
359
360
assert driver.models
361
+
362
363
+def test_driver_from_uijson():
364
+ path = Path(__file__).resolve().parent / "legacy/v0.2.1"
365
366
+ for file in path.glob("*.ui.json"):
367
+ input_file = load_ui_json_as_dict(file)
368
+ assert from_input_file(input_file)
0 commit comments