@@ -1428,7 +1428,7 @@ def test_exit_job(mock_popen, mapdl, cleared):
14281428 "ansys.tools.path.path._get_application_path" ,
14291429 lambda * args , ** kwargs : "path/to/mapdl/executable" ,
14301430)
1431- @patch ("ansys.tools.path.path._mapdl_version_from_path " , lambda * args , ** kwargs : 242 )
1431+ @patch ("ansys.tools.path.path._version_from_path " , lambda * args , ** kwargs : 242 )
14321432@stack (* PATCH_MAPDL_START )
14331433@patch ("ansys.mapdl.core.launcher.launch_grpc" )
14341434@patch ("ansys.mapdl.core.launcher.send_scontrol" )
@@ -1767,7 +1767,9 @@ def fake_proc(*args, **kwargs):
17671767
17681768
17691769@requires ("ansys-tools-path" )
1770- @patch ("ansys.tools.path.path._mapdl_version_from_path" , lambda * args , ** kwargs : 201 )
1770+ @patch (
1771+ "ansys.tools.path.path._version_from_path" , side_effect = lambda * args , ** kwargs : 201
1772+ )
17711773@patch ("ansys.mapdl.core._HAS_ATP" , True )
17721774def test_get_version_version_error (monkeypatch ):
17731775 monkeypatch .delenv ("PYMAPDL_MAPDL_VERSION" , False )
@@ -1983,7 +1985,7 @@ def return_everything(*arg, **kwags):
19831985 "ansys.tools.path.path._get_application_path" ,
19841986 lambda * args , ** kwargs : "path/to/mapdl/executable" ,
19851987)
1986- @patch ("ansys.tools.path.path._mapdl_version_from_path " , lambda * args , ** kwargs : 242 )
1988+ @patch ("ansys.tools.path.path._version_from_path " , lambda * args , ** kwargs : 242 )
19871989@stack (* PATCH_MAPDL )
19881990@pytest .mark .parametrize (
19891991 "arg,value,method" ,
0 commit comments