@@ -86,9 +86,9 @@ def test_upload_asset():
8686 assert "storage_path" in data
8787
8888
89- def test_add_asset (thing ):
89+ def test_add_asset (water_well_thing ):
9090 payload = {
91- "thing_id" : thing .id ,
91+ "thing_id" : water_well_thing .id ,
9292 "name" : "test_asset.png" ,
9393 "label" : "Test Asset" ,
9494 "uri" : "https://storage.googleapis.com/mock-bucket/mock-asset" ,
@@ -114,7 +114,7 @@ def test_add_asset(thing):
114114 cleanup_post_test (Asset , data ["id" ])
115115
116116
117- def test_add_asset_409_bad_thing_id (thing ):
117+ def test_add_asset_409_bad_thing_id (water_well_thing ):
118118 bad_thing_id = 99999
119119 payload = {
120120 "thing_id" : bad_thing_id ,
@@ -160,9 +160,9 @@ def test_get_assets(asset, asset_with_associated_thing):
160160 assert data ["items" ][1 ]["signed_url" ] == None
161161
162162
163- def test_get_assets_thing_id (asset_with_associated_thing , thing ):
163+ def test_get_assets_thing_id (asset_with_associated_thing , water_well_thing ):
164164 with patch ("api.asset.get_storage_bucket" , return_value = MockStorageBucket ()):
165- query_parameters = {"thing_id" : thing .id }
165+ query_parameters = {"thing_id" : water_well_thing .id }
166166 response = client .get ("/asset" , params = query_parameters )
167167 assert response .status_code == 200
168168 data = response .json ()
0 commit comments