Skip to content

Commit aff365e

Browse files
committed
[TEST] Make writing json optional while development
1 parent 065e3d6 commit aff365e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_modules/test_serialize_model.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ def test_generate_horizontal_stratigraphic_model():
1414
model_json = model.model_dump_json(by_alias=True, indent=4, exclude={"*data"})
1515

1616
# Write the JSON to disk
17-
file_path = os.path.join("temp", "horizontal_stratigraphic_model.json")
18-
with open(file_path, "w") as f:
19-
f.write(model_json)
17+
if False:
18+
file_path = os.path.join("temp", "horizontal_stratigraphic_model.json")
19+
with open(file_path, "w") as f:
20+
f.write(model_json)
2021

2122
with loading_model_injection(
2223
surface_points_binary=model.structural_frame.surface_points_copy.data, # TODO: Here we need to pass the binary array

0 commit comments

Comments
 (0)