From 1d63ba09ca3a767b0330e7c6c1d5135c53e363be Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:56:41 +0100 Subject: [PATCH] tests: making sure the /verify is executed properly after finish --- tests/conftest.py | 2 ++ tests/test_mapdl.py | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 724929fa6d..157472057d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -437,6 +437,8 @@ def run_before_and_after_tests( yield # this is where the testing happens + mapdl.prep7() + # Check resetting state assert prev == mapdl.is_local assert not mapdl.exited, "MAPDL is exited after the test. It should have not!" diff --git a/tests/test_mapdl.py b/tests/test_mapdl.py index e9a4e64ffe..ed2d611c0b 100644 --- a/tests/test_mapdl.py +++ b/tests/test_mapdl.py @@ -2436,6 +2436,7 @@ def test_ctrl(mapdl, cleared): assert "/verify" in mck_run.call_args_list[0].args[0] + mapdl.finish() mapdl.run("/verify") # mocking might skip running this inside mapdl._ctrl