@@ -122,7 +122,7 @@ def test_add_water_well(location, group):
122122 expected_location ["created_at" ] = (
123123 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
124124 )
125- assert data ["active_location " ] == expected_location
125+ assert data ["current_location " ] == expected_location
126126
127127 cleanup_post_test (Thing , data ["id" ])
128128
@@ -199,7 +199,7 @@ def test_add_spring(location, group):
199199 expected_location ["created_at" ] = (
200200 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
201201 )
202- assert data ["active_location " ] == expected_location
202+ assert data ["current_location " ] == expected_location
203203
204204 cleanup_post_test (Thing , data ["id" ])
205205
@@ -408,7 +408,7 @@ def test_get_water_wells(water_well_thing, location):
408408 expected_location ["created_at" ] = (
409409 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
410410 )
411- assert data ["items" ][0 ]["active_location " ] == expected_location
411+ assert data ["items" ][0 ]["current_location " ] == expected_location
412412
413413
414414def test_get_water_well_by_id (water_well_thing , location ):
@@ -439,7 +439,7 @@ def test_get_water_well_by_id(water_well_thing, location):
439439 expected_location ["created_at" ] = (
440440 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
441441 )
442- assert data ["active_location " ] == expected_location
442+ assert data ["current_location " ] == expected_location
443443
444444
445445def test_get_water_well_by_id_404_not_found (water_well_thing ):
@@ -485,7 +485,7 @@ def test_get_springs(spring_thing, location):
485485 expected_location ["created_at" ] = (
486486 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
487487 )
488- assert data ["items" ][0 ]["active_location " ] == expected_location
488+ assert data ["items" ][0 ]["current_location " ] == expected_location
489489
490490
491491def test_get_spring_by_id (spring_thing , location ):
@@ -505,7 +505,7 @@ def test_get_spring_by_id(spring_thing, location):
505505 expected_location ["created_at" ] = (
506506 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
507507 )
508- assert data ["active_location " ] == expected_location
508+ assert data ["current_location " ] == expected_location
509509
510510
511511def test_get_spring_by_id_404_not_found (spring_thing ):
@@ -710,7 +710,7 @@ def test_get_thing_by_id(water_well_thing, location):
710710 expected_location ["created_at" ] = (
711711 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
712712 )
713- assert data ["active_location " ] == expected_location
713+ assert data ["current_location " ] == expected_location
714714
715715
716716def test_get_thing_by_id_404_not_found (water_well_thing ):
@@ -798,7 +798,7 @@ def test_patch_water_well(water_well_thing, location):
798798 expected_location ["created_at" ] = (
799799 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
800800 )
801- assert data ["active_location " ] == expected_location
801+ assert data ["current_location " ] == expected_location
802802
803803 cleanup_patch_test (Thing , payload , water_well_thing )
804804
@@ -861,7 +861,7 @@ def test_patch_spring(spring_thing, location):
861861 expected_location ["created_at" ] = (
862862 expected_location ["created_at" ].isoformat ().replace ("+00:00" , "Z" )
863863 )
864- assert data ["active_location " ] == expected_location
864+ assert data ["current_location " ] == expected_location
865865
866866 cleanup_patch_test (Thing , payload , spring_thing )
867867
0 commit comments