@@ -160,7 +160,7 @@ def test_patch_groundwater_level_observation_404_not_found(
160160 assert data ["detail" ] == f"Observation with ID { bad_id } not found."
161161
162162
163- def test_patch_groundwater_level_observation_404_wrong_sample_type (
163+ def test_patch_groundwater_level_observation_404_wrong_activity_type (
164164 water_chemistry_observation , geothermal_observation
165165):
166166 for obs in water_chemistry_observation , geothermal_observation :
@@ -172,13 +172,13 @@ def test_patch_groundwater_level_observation_404_wrong_sample_type(
172172 data = response .json ()
173173
174174 if obs .observed_property == "temperature" :
175- sample_type = "geothermal"
175+ activity_type = "geothermal"
176176 else :
177- sample_type = "water chemistry"
177+ activity_type = "water chemistry"
178178
179179 assert (
180180 data ["detail" ][0 ]["msg" ]
181- == f"Observation with ID { obs .id } is not a groundwater level observation. It is a { sample_type } observation."
181+ == f"Observation with ID { obs .id } is not a groundwater level observation. It is a { activity_type } observation."
182182 )
183183
184184
@@ -206,7 +206,7 @@ def test_patch_water_chemistry_observation_404_not_found(water_chemistry_observa
206206 assert data ["detail" ] == f"Observation with ID { bad_id } not found."
207207
208208
209- def test_patch_water_chemistry_observation_404_wrong_sample_type (
209+ def test_patch_water_chemistry_observation_404_wrong_activity_type (
210210 groundwater_level_observation , geothermal_observation
211211):
212212 for obs in groundwater_level_observation , geothermal_observation :
@@ -216,13 +216,13 @@ def test_patch_water_chemistry_observation_404_wrong_sample_type(
216216 data = response .json ()
217217
218218 if obs .observed_property == "temperature" :
219- sample_type = "geothermal"
219+ activity_type = "geothermal"
220220 else :
221- sample_type = "groundwater level"
221+ activity_type = "groundwater level"
222222
223223 assert (
224224 data ["detail" ][0 ]["msg" ]
225- == f"Observation with ID { obs .id } is not a water chemistry observation. It is a { sample_type } observation."
225+ == f"Observation with ID { obs .id } is not a water chemistry observation. It is a { activity_type } observation."
226226 )
227227
228228
@@ -248,7 +248,7 @@ def test_patch_geothermal_observation_404_not_found(geothermal_observation):
248248 assert data ["detail" ] == f"Observation with ID { bad_id } not found."
249249
250250
251- def test_patch_geothermal_observation_404_wrong_sample_type (
251+ def test_patch_geothermal_observation_404_wrong_activity_type (
252252 groundwater_level_observation , water_chemistry_observation
253253):
254254 for obs in groundwater_level_observation , water_chemistry_observation :
@@ -258,13 +258,13 @@ def test_patch_geothermal_observation_404_wrong_sample_type(
258258 data = response .json ()
259259
260260 if obs .observed_property == "groundwater level" :
261- sample_type = "groundwater level"
261+ activity_type = "groundwater level"
262262 else :
263- sample_type = "water chemistry"
263+ activity_type = "water chemistry"
264264
265265 assert (
266266 data ["detail" ][0 ]["msg" ]
267- == f"Observation with ID { obs .id } is not a geothermal observation. It is a { sample_type } observation."
267+ == f"Observation with ID { obs .id } is not a geothermal observation. It is a { activity_type } observation."
268268 )
269269
270270
@@ -412,7 +412,7 @@ def test_get_groundwater_level_observation_by_id_404_not_found(
412412 assert data ["detail" ] == f"Observation with ID { bad_id } not found."
413413
414414
415- def test_get_groundwater_level_observation_by_id_404_wrong_sample_type (
415+ def test_get_groundwater_level_observation_by_id_404_wrong_activity_type (
416416 water_chemistry_observation , geothermal_observation
417417):
418418 for obs in water_chemistry_observation , geothermal_observation :
@@ -421,13 +421,13 @@ def test_get_groundwater_level_observation_by_id_404_wrong_sample_type(
421421 data = response .json ()
422422
423423 if obs .observed_property == "temperature" :
424- actual_sample_type = "geothermal"
424+ actual_activity_type = "geothermal"
425425 else :
426- actual_sample_type = "water chemistry"
426+ actual_activity_type = "water chemistry"
427427
428428 assert (
429429 data ["detail" ][0 ]["msg" ]
430- == f"Observation with ID { obs .id } is not a groundwater level observation. It is a { actual_sample_type } observation."
430+ == f"Observation with ID { obs .id } is not a groundwater level observation. It is a { actual_activity_type } observation."
431431 )
432432 assert data ["detail" ][0 ]["type" ] == "value_error"
433433 assert data ["detail" ][0 ]["input" ] == {"observation_id" : obs .id }
@@ -569,7 +569,7 @@ def test_get_water_chemistry_observation_by_id_404_not_found(
569569 assert data ["detail" ] == f"Observation with ID { bad_id } not found."
570570
571571
572- def test_get_water_chemistry_observation_by_id_404_wrong_sample_type (
572+ def test_get_water_chemistry_observation_by_id_404_wrong_activity_type (
573573 groundwater_level_observation , geothermal_observation
574574):
575575 for obs in groundwater_level_observation , geothermal_observation :
@@ -578,13 +578,13 @@ def test_get_water_chemistry_observation_by_id_404_wrong_sample_type(
578578 data = response .json ()
579579
580580 if obs .observed_property == "groundwater level" :
581- actual_sample_type = "groundwater level"
581+ actual_activity_type = "groundwater level"
582582 else :
583- actual_sample_type = "geothermal"
583+ actual_activity_type = "geothermal"
584584
585585 assert (
586586 data ["detail" ][0 ]["msg" ]
587- == f"Observation with ID { obs .id } is not a water chemistry observation. It is a { actual_sample_type } observation."
587+ == f"Observation with ID { obs .id } is not a water chemistry observation. It is a { actual_activity_type } observation."
588588 )
589589 assert data ["detail" ][0 ]["type" ] == "value_error"
590590 assert data ["detail" ][0 ]["input" ] == {"observation_id" : obs .id }
@@ -650,7 +650,7 @@ def test_get_geothermal_observation_by_id_404_not_found(geothermal_observation):
650650 assert data ["detail" ] == f"Observation with ID { bad_id } not found."
651651
652652
653- def test_get_geothermal_observation_by_id_404_wrong_sample_type (
653+ def test_get_geothermal_observation_by_id_404_wrong_activity_type (
654654 water_chemistry_observation , groundwater_level_observation
655655):
656656 for obs in water_chemistry_observation , groundwater_level_observation :
@@ -659,13 +659,13 @@ def test_get_geothermal_observation_by_id_404_wrong_sample_type(
659659 data = response .json ()
660660
661661 if obs .observed_property == "groundwater level" :
662- actual_sample_type = "groundwater level"
662+ actual_activity_type = "groundwater level"
663663 else :
664- actual_sample_type = "water chemistry"
664+ actual_activity_type = "water chemistry"
665665
666666 assert (
667667 data ["detail" ][0 ]["msg" ]
668- == f"Observation with ID { obs .id } is not a geothermal observation. It is a { actual_sample_type } observation."
668+ == f"Observation with ID { obs .id } is not a geothermal observation. It is a { actual_activity_type } observation."
669669 )
670670 assert data ["detail" ][0 ]["type" ] == "value_error"
671671 assert data ["detail" ][0 ]["input" ] == {"observation_id" : obs .id }
0 commit comments