Skip to content

Commit

Permalink
Fix some bugs in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sblauth committed Aug 14, 2023
1 parent 735f720 commit 4052183
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_save_xdmf_files_ocp(dir_path, F, bcs, J, y, u, p, config_ocp):
ocp.solve(algorithm="bfgs", rtol=1e-1)
MPI.barrier(MPI.comm_world)
assert pathlib.Path(dir_path + "/out").is_dir()
assert pathlib.Path(dir_path + "/out/xdmf").is_dir()
assert pathlib.Path(dir_path + "/out/checkpoints").is_dir()
assert pathlib.Path(dir_path + "/out/history.txt").is_file()
assert pathlib.Path(dir_path + "/out/history.json").is_file()
assert pathlib.Path(dir_path + "/out/checkpoints/state_0.xdmf").is_file()
Expand Down Expand Up @@ -165,7 +165,7 @@ def test_save_xdmf_files_mixed(dir_path, rng, config_ocp, geometry):
MPI.barrier(MPI.comm_world)

assert pathlib.Path(dir_path + "/out").is_dir()
assert pathlib.Path(dir_path + "/out/xdmf").is_dir()
assert pathlib.Path(dir_path + "/out/checkpoints").is_dir()
assert pathlib.Path(dir_path + "/out/history.txt").is_file()
assert pathlib.Path(dir_path + "/out/history.json").is_file()
assert pathlib.Path(dir_path + "/out/checkpoints/state_0_0.xdmf").is_file()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_remeshing.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def mesh_parametrization(mesh_file):
)

assert pathlib.Path(dir_path + "/temp").is_dir()
assert pathlib.Path(dir_path + "/temp/xdmf").is_dir()
assert pathlib.Path(dir_path + "/temp/checkpoints").is_dir()
assert pathlib.Path(dir_path + "/temp/history.txt").is_file()
assert pathlib.Path(dir_path + "/temp/history.json").is_file()
assert pathlib.Path(dir_path + "/temp/optimized_mesh.msh").is_file()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_shape_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def test_save_xdmf_files():
MPI.barrier(MPI.comm_world)

assert pathlib.Path(dir_path + "/out").is_dir()
assert pathlib.Path(dir_path + "/out/xdmf").is_dir()
assert pathlib.Path(dir_path + "/out/checkpoints").is_dir()
assert pathlib.Path(dir_path + "/out/history.txt").is_file()
assert pathlib.Path(dir_path + "/out/history.json").is_file()
assert pathlib.Path(dir_path + "/out/checkpoints/state_0.xdmf").is_file()
Expand Down

0 comments on commit 4052183

Please sign in to comment.