@@ -6,10 +6,7 @@ def test_model_mesh_components(client, test_id):
66 base_path = client .application .config ["DATA_FOLDER_PATH" ]
77 data_path = os .path .join (base_path , test_id )
88 os .makedirs (data_path , exist_ok = True )
9- shutil .copy (
10- "./tests/data/cube.vtm" ,
11- os .path .join (data_path , "viewable.vtm" )
12- )
9+ shutil .copy ("./tests/data/cube.vtm" , os .path .join (data_path , "viewable.vtm" ))
1310
1411 response = client .post (route , json = {"id" : test_id })
1512 assert response .status_code == 200
@@ -18,7 +15,7 @@ def test_model_mesh_components(client, test_id):
1815 assert isinstance (uuid_dict , dict )
1916
2017 indices = sorted (uuid_dict .values ())
21- assert all (indices [i ] > indices [i - 1 ] for i in range (1 , len (indices )))
18+ assert all (indices [i ] > indices [i - 1 ] for i in range (1 , len (indices )))
2219 for key in uuid_dict :
2320 assert isinstance (key , str )
2421
@@ -29,16 +26,9 @@ def test_extract_brep_uuids(client, test_id):
2926 base_path = client .application .config ["DATA_FOLDER_PATH" ]
3027 data_path = os .path .join (base_path , test_id )
3128 os .makedirs (data_path , exist_ok = True )
32- shutil .copy (
33- "./tests/data/cube.og_brep" ,
34- os .path .join (data_path , "cube.og_brep" )
35- )
36-
37- json_data = {
38- "id" : test_id ,
39- "geode_object" : "BRep" ,
40- "filename" : "cube.og_brep"
41- }
29+ shutil .copy ("./tests/data/cube.og_brep" , os .path .join (data_path , "cube.og_brep" ))
30+
31+ json_data = {"id" : test_id , "geode_object" : "BRep" , "filename" : "cube.og_brep" }
4232 response = client .post (route , json = json_data )
4333 assert response .status_code == 200
4434
0 commit comments