Skip to content

Commit 03741e7

Browse files
committed
add input_file field
1 parent cb04e64 commit 03741e7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/test_models_routes.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_export_project_route(client: FlaskClient, tmp_path: Path) -> None:
7878
id="test_data_1",
7979
geode_object="BRep",
8080
viewer_object="BRep",
81-
input_file=None,
81+
input_file="test_native.txt",
8282
native_file="test_native.txt",
8383
additional_files=[],
8484
)
@@ -121,12 +121,6 @@ def test_export_project_route(client: FlaskClient, tmp_path: Path) -> None:
121121
assert "project.db" in names
122122
assert "test_data_1/test_native.txt" in names
123123
assert "test_data_2/test_input.txt" in names
124-
with get_session() as session:
125-
data1_updated = session.query(Data).filter_by(id="test_data_1").first()
126-
assert data1_updated.input_file == "test_native.txt"
127-
128-
data2_updated = session.query(Data).filter_by(id="test_data_2").first()
129-
assert data2_updated.input_file == "test_input.txt"
130124

131125
response.close()
132126

0 commit comments

Comments
 (0)