77
88# Local application imports
99from src .opengeodeweb_back import geode_functions , test_utils
10- from src .opengeodeweb_back .data import Data
11- from src .opengeodeweb_back .database import database
1210
1311
1412def test_allowed_files (client ):
@@ -173,7 +171,6 @@ def test_texture_coordinates(client, test_id):
173171 with client .application .app_context ():
174172 data = Data .create (geode_object = "PolygonalSurface3D" , input_file = "hat.vtp" )
175173 data .native_file_name = "hat.vtp"
176- database .session .commit ()
177174
178175 data_path = geode_functions .data_file_path (data .id , "hat.vtp" )
179176 print (data_path )
@@ -197,7 +194,6 @@ def test_vertex_attribute_names(client, test_id):
197194 with client .application .app_context ():
198195 data = Data .create (geode_object = "PolygonalSurface3D" , input_file = "test.vtp" )
199196 data .native_file_name = "test.vtp"
200- database .session .commit ()
201197
202198 data_path = geode_functions .data_file_path (data .id , "test.vtp" )
203199 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
@@ -218,7 +214,6 @@ def test_polygon_attribute_names(client, test_id):
218214 with client .application .app_context ():
219215 data = Data .create (geode_object = "PolygonalSurface3D" , input_file = "test.vtp" )
220216 data .native_file_name = "test.vtp"
221- database .session .commit ()
222217
223218 data_path = geode_functions .data_file_path (data .id , "test.vtp" )
224219 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
@@ -238,7 +233,6 @@ def test_polyhedron_attribute_names(client, test_id):
238233 with client .application .app_context ():
239234 data = Data .create (geode_object = "PolyhedralSolid3D" , input_file = "test.vtu" )
240235 data .native_file_name = "test.vtu"
241- database .session .commit ()
242236
243237 data_path = geode_functions .data_file_path (data .id , "test.vtu" )
244238 os .makedirs (os .path .dirname (data_path ), exist_ok = True )
0 commit comments