Skip to content

Commit 5b0ba3c

Browse files
committed
changed path
1 parent dc46fe3 commit 5b0ba3c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/test_routes.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,20 @@ def get_full_data():
4545
test_utils.test_route_wrong_params(client, route, get_full_data)
4646

4747

48-
def test_upload_file(client, filename="corbi.og_brep"):
48+
def test_upload_file(client, filename="test.og_brep"):
4949
response = client.put(
5050
f"/upload_file",
51-
data={"file": FileStorage(open(f"./tests/{filename}", "rb"))},
51+
data={"file": FileStorage(open(f"./tests/data/{filename}", "rb"))},
5252
)
53-
5453
assert response.status_code == 201
5554

56-
5755
def test_missing_files(client):
5856
route = f"/missing_files"
5957

6058
def get_full_data():
6159
return {
6260
"input_geode_object": "BRep",
63-
"filename": "corbi.og_brep",
61+
"filename": "test.og_brep",
6462
}
6563

6664
json = get_full_data()
@@ -140,7 +138,6 @@ def get_full_data():
140138

141139

142140
def test_save_viewable_file(client):
143-
144141
test_upload_file(client, filename="test.og_brep")
145142
route = f"/save_viewable_file"
146143

@@ -175,7 +172,7 @@ def test_texture_coordinates(client, test_id):
175172
with client.application.app_context():
176173
data_path = geode_functions.data_file_path(test_id, "hat.vtp")
177174
os.makedirs(os.path.dirname(data_path), exist_ok=True)
178-
shutil.copy("./tests/hat.vtp", data_path)
175+
shutil.copy("./tests/data/hat.vtp", data_path) # Utiliser hat.vtp qui existe
179176

180177
response = client.post(
181178
"/texture_coordinates",

0 commit comments

Comments
 (0)