Skip to content

Commit c0c53bc

Browse files
committed
MAINT: Ensure proplist is not none
1 parent fb94992 commit c0c53bc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_ensembles/test_ensemble_well_props.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def test_config_data(configdata: dict[str, dict[str, Any]]) -> None:
176176
cfg = ensemble_well_props.ConfigData(configdata)
177177
assert cfg.wellfile == str(WELLNAME2)
178178

179+
assert cfg.proplist is not None
179180
assert cfg.proplist[0].name == "Facies"
180181

181182

@@ -202,6 +203,9 @@ def test_compute_some_props(configdata: dict[str, dict[str, Any]]) -> None:
202203
wcase.well.make_ijk_from_grid(grd)
203204

204205
myprops = [FACIESFILE1, POROFILE1]
206+
207+
assert cfg.proplist is not None
208+
205209
for ncount, pcase in enumerate(myprops):
206210
prop = xtgeo.gridproperty_from_file(pcase)
207211
prop.geometry = grd

0 commit comments

Comments
 (0)