Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Feb 11, 2025
1 parent 672f43b commit 98a12fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_xpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def create_cube(self, mapdl):
from conftest import clear

clear(mapdl)
mapdl.clear()

# set up the full file
mapdl.block(0, 1, 0, 1, 0, 1)
Expand All @@ -70,9 +71,12 @@ def create_cube(self, mapdl):
if mapdl.result_file in mapdl.list_files():
mapdl.slashdelete(mapdl.result_file)

if "cube_solve_xpl" in mapdl.list_files():
mapdl.slashdelete("cube_solve_xpl.db")

# solve first 10 non-trivial modes
mapdl.modal_analysis(nmode=10, freqb=1)
mapdl.save("cube_solve_xpl")
mapdl.save("cube_solve_xpl", "db")

@pytest.fixture(scope="class")
def cube_solve(self, mapdl):
Expand All @@ -81,7 +85,7 @@ def cube_solve(self, mapdl):
@pytest.fixture(scope="function")
def xpl(self, mapdl, cube_solve):
mapdl.prep7()
mapdl.resume("cube_solve_xpl")
mapdl.resume("cube_solve_xpl", "db")

xpl = mapdl.xpl
if not self.full_file and not self.full_file in mapdl.list_files():
Expand Down

0 comments on commit 98a12fe

Please sign in to comment.