@@ -1430,7 +1430,7 @@ def test_exit_job(mock_popen, mapdl, cleared):
14301430 "ansys.tools.path.path._get_application_path" ,
14311431 lambda * args , ** kwargs : "path/to/mapdl/executable" ,
14321432)
1433- @patch ("ansys.tools.path.path._mapdl_version_from_path " , lambda * args , ** kwargs : 242 )
1433+ @patch ("ansys.tools.path.path._version_from_path " , lambda * args , ** kwargs : 242 )
14341434@stack (* PATCH_MAPDL_START )
14351435@patch ("ansys.mapdl.core.launcher.launch_grpc" )
14361436@patch ("ansys.mapdl.core.launcher.send_scontrol" )
@@ -1769,7 +1769,9 @@ def fake_proc(*args, **kwargs):
17691769
17701770
17711771@requires ("ansys-tools-path" )
1772- @patch ("ansys.tools.path.path._mapdl_version_from_path" , lambda * args , ** kwargs : 201 )
1772+ @patch (
1773+ "ansys.tools.path.path._version_from_path" , side_effect = lambda * args , ** kwargs : 201
1774+ )
17731775@patch ("ansys.mapdl.core._HAS_ATP" , True )
17741776def test_get_version_version_error (monkeypatch ):
17751777 monkeypatch .delenv ("PYMAPDL_MAPDL_VERSION" , False )
@@ -1985,7 +1987,7 @@ def return_everything(*arg, **kwags):
19851987 "ansys.tools.path.path._get_application_path" ,
19861988 lambda * args , ** kwargs : "path/to/mapdl/executable" ,
19871989)
1988- @patch ("ansys.tools.path.path._mapdl_version_from_path " , lambda * args , ** kwargs : 242 )
1990+ @patch ("ansys.tools.path.path._version_from_path " , lambda * args , ** kwargs : 242 )
19891991@stack (* PATCH_MAPDL )
19901992@pytest .mark .parametrize (
19911993 "arg,value,method" ,
0 commit comments