Skip to content

Commit 3c8bcdf

Browse files
committed
verify CLI opens a plan HDF file with RasPlanHdf class
1 parent bb005df commit 3c8bcdf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_cli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
TEST_DATA = Path("./tests/data")
1010
MUNCIE_G05 = TEST_DATA / "ras/Muncie.g05.hdf"
11+
BALD_EAGLE_P18 = TEST_DATA / "ras/BaldEagleDamBrk.p18.hdf"
1112

1213

1314
def test_docstring_to_help():
@@ -106,3 +107,10 @@ def test_export(tmp_path: Path):
106107
gdf = gpd.read_parquet(test_parquet_path)
107108
assert len(gdf) == 5790
108109
assert gdf.crs == CRS.from_epsg(4326)
110+
111+
112+
def test_export_plan_hdf():
113+
args = parse_args(["mesh_cell_points", str(BALD_EAGLE_P18)])
114+
exported = json.loads(export(args))
115+
gdf = gpd.GeoDataFrame.from_features(exported)
116+
assert len(gdf) == 4425

0 commit comments

Comments
 (0)