@@ -50,7 +50,7 @@ def get_full_data():
5050def test_upload_file (client , filename = "test.og_brep" ):
5151 response = client .put (
5252 f"/opengeodeweb_back/upload_file" ,
53- data = {"file" : FileStorage (open (f"./src/ tests/data/{ filename } " , "rb" ))},
53+ data = {"file" : FileStorage (open (f"./tests/data/{ filename } " , "rb" ))},
5454 )
5555 assert response .status_code == 201
5656
@@ -179,7 +179,7 @@ def test_texture_coordinates(client, test_id):
179179
180180 data_path = geode_functions .data_file_path (data .id , data .native_file_name )
181181 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
182- shutil .copy ("./src/ tests/data/hat.vtp" , data_path )
182+ shutil .copy ("./tests/data/hat.vtp" , data_path )
183183 assert os .path .exists (data_path ), f"File not found at { data_path } "
184184 response = client .post (
185185 "/opengeodeweb_back/texture_coordinates" , json = {"id" : data .id }
@@ -203,7 +203,7 @@ def test_vertex_attribute_names(client, test_id):
203203
204204 data_path = geode_functions .data_file_path (data .id , data .native_file_name )
205205 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
206- shutil .copy ("./src/ tests/data/test.vtp" , data_path )
206+ shutil .copy ("./tests/data/test.vtp" , data_path )
207207 assert os .path .exists (data_path ), f"File not found at { data_path } "
208208 response = client .post (route , json = {"id" : data .id })
209209 assert response .status_code == 200
@@ -225,7 +225,7 @@ def test_polygon_attribute_names(client, test_id):
225225
226226 data_path = geode_functions .data_file_path (data .id , data .native_file_name )
227227 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
228- shutil .copy ("./src/ tests/data/test.vtp" , data_path )
228+ shutil .copy ("./tests/data/test.vtp" , data_path )
229229 assert os .path .exists (data_path ), f"File not found at { data_path } "
230230 response = client .post (route , json = {"id" : data .id })
231231 assert response .status_code == 200
@@ -247,7 +247,7 @@ def test_polyhedron_attribute_names(client, test_id):
247247
248248 data_path = geode_functions .data_file_path (data .id , data .native_file_name )
249249 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
250- shutil .copy ("./src/ tests/data/test.vtu" , data_path )
250+ shutil .copy ("./tests/data/test.vtu" , data_path )
251251 assert os .path .exists (data_path ), f"File not found at { data_path } "
252252 response = client .post (route , json = {"id" : data .id })
253253 print (response .json )
0 commit comments