Skip to content

Commit 6364052

Browse files
committed
feat: test status histories for well inventory
1 parent 4b0917e commit 6364052

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_well_inventory.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ def test_well_inventory_db_contents():
235235
== "true"
236236
)
237237

238+
assert thing.well_status == file_content["well_hole_status"]
239+
assert (
240+
thing.datalogger_suitability_status == "Datalogger can be installed"
241+
if file_content["datalogger_possible"].lower() == "true"
242+
else "Datalogger cannot be installed"
243+
)
244+
assert (
245+
thing.open_status == "Open"
246+
if file_content["is_open"].lower() == "true"
247+
else "Closed"
248+
)
249+
238250
# LOCATION AND RELATED RECORDS
239251
location_thing_association = (
240252
session.query(LocationThingAssociation)

0 commit comments

Comments
 (0)