Skip to content

Commit 8633977

Browse files
committed
feat: test contact notes
1 parent 60fc69e commit 8633977

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/test_well_inventory.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ def test_well_inventory_db_contents():
264264
)
265265
assert location.elevation_method == file_content["elevation_method"]
266266

267+
assert (
268+
location._get_notes("Directions")[0].content
269+
== file_content["directions_to_site"]
270+
)
271+
267272
# CONTACTS AND RELATED RECORDS
268273
thing_contact_associations = (
269274
session.query(ThingContactAssociation)
@@ -290,6 +295,14 @@ def test_well_inventory_db_contents():
290295
), f"Expected 1 thing-contact association for thing {point_id}."
291296

292297
for contact in contacts:
298+
assert (
299+
contact.general_notes[0].content
300+
== file_content["contact_special_requests_notes"]
301+
)
302+
assert (
303+
contact.communication_notes[0].content
304+
== file_content["result_communication_preference"]
305+
)
293306
if contact.contact_type == "Primary":
294307
assert contact.name == file_content["contact_1_name"]
295308
assert (

0 commit comments

Comments
 (0)