Skip to content

Commit a19d09a

Browse files
committed
Add unit test for legacy driver from "inversion_type"
1 parent d70b26b commit a19d09a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/uijson_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import numpy as np
1717
import pytest
1818
from geoapps_utils.driver.data import BaseData
19+
from geoapps_utils.run import load_ui_json_as_dict
1920
from geoh5py import Workspace
2021
from geoh5py.ui_json import InputFile
2122
from geoh5py.ui_json.annotations import Deprecated
@@ -357,3 +358,11 @@ def test_legacy_uijson(tmp_path: Path, caplog):
357358
assert "The Batch2D classes will be deprecated" in caplog.text
358359

359360
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

Comments
 (0)