diff --git a/tests/conftest.py b/tests/conftest.py index cd27b3cea..161015e0f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,7 +20,7 @@ def location(): session.commit() session.refresh(loc) - note = loc.add_note("these are some test notes", "Other") + note = loc.add_note("these are some test notes", "General") session.add(note) session.commit() session.refresh(loc) diff --git a/tests/test_location.py b/tests/test_location.py index 54e5fea30..31ab8d3c6 100644 --- a/tests/test_location.py +++ b/tests/test_location.py @@ -142,7 +142,7 @@ def test_patch_location_404_not_found(location): location_notes_patch = "patched notes" response = client.patch( f"/location/{bad_location_id}", - json={"notes": [{"content": location_notes_patch, "note_type": "Other"}]}, + json={"notes": [{"content": location_notes_patch, "note_type": "General"}]}, ) data = response.json() assert response.status_code == 404 diff --git a/transfers/well_transfer.py b/transfers/well_transfer.py index aaa2eb0bd..02d6b1c69 100644 --- a/transfers/well_transfer.py +++ b/transfers/well_transfer.py @@ -313,7 +313,9 @@ def _step(self, session: Session, df: pd.DataFrame, i: int, row: pd.Series): measuring_point_height=mpheight, measuring_point_description=mpheight_description, notes=( - [{"content": row.Notes, "note_type": "Other"}] if row.Notes else [] + [{"content": row.Notes, "note_type": "General"}] + if row.Notes + else [] ), well_completion_date=row.CompletionDate, well_driller_name=row.DrillerName,