Skip to content

Commit

Permalink
Added tempfile inside context for other meshbuilder test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorycontixd committed May 14, 2024
1 parent d1d73f6 commit 07789d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_meshbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ def test_builder_creation():
assert (
builder.mesh.moment_inertia.all() == mesh.moment_inertia.all()
), f"{builder.mesh.moment_inertia} != {mesh.moment_inertia}"
assert (
builder.mesh.volume == mesh.volume
), f"{builder.mesh.volume} != {mesh.volume}"
assert builder.mesh.volume == mesh.volume, f"{builder.mesh.volume} != {mesh.volume}"


def test_builder_creation_custom_mesh():
Expand Down Expand Up @@ -62,6 +60,4 @@ def test_builder_creation_custom_mesh():
assert (
builder.mesh.moment_inertia.all() == mesh.moment_inertia.all()
), f"{builder.mesh.moment_inertia} != {mesh.moment_inertia}"
assert (
builder.mesh.volume == mesh.volume
), f"{builder.mesh.volume} != {mesh.volume}"
assert builder.mesh.volume == mesh.volume, f"{builder.mesh.volume} != {mesh.volume}"

0 comments on commit 07789d3

Please sign in to comment.