From 7ba7acd9de42545d8d0e4de8c106c467cb6c62d6 Mon Sep 17 00:00:00 2001 From: "J.P" <70083705+stapmoshun@users.noreply.github.com> Date: Sun, 26 Nov 2023 02:28:09 -0500 Subject: [PATCH] fix tests --- tests/ssh/test_ssh.py | 2 +- tests/test_base.py | 4 ++-- tests/test_shell_tests.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ssh/test_ssh.py b/tests/ssh/test_ssh.py index 4278515d..c2c98986 100644 --- a/tests/ssh/test_ssh.py +++ b/tests/ssh/test_ssh.py @@ -49,7 +49,7 @@ def craete_location(host): -@pytest.mark.skipif(not Shell.ssh_enabled(), reason="SSH is not aenabled") +@pytest.mark.skipif(not Shell.ssh_enabled(), reason="SSH is not enabled") @pytest.mark.incremental class TestSsh: diff --git a/tests/test_base.py b/tests/test_base.py index 6343cba7..079d21bf 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -38,12 +38,12 @@ def test_custom_path(self): def test_environment_variable_path(self): HEADING() - os.environ["CLOUDMESH"] = "./tmp/.cloudmesh" + os.environ["CLOUDMESH_CONFIG_DIR"] = "./tmp/.cloudmesh" cloudmesh = Base() assert cloudmesh.path == "./tmp/.cloudmesh" assert cloudmesh.config == f"{cloudmesh.path}/cloudmesh.yaml" shutil.rmtree("./tmp") - del os.environ["CLOUDMESH"] + del os.environ["CLOUDMESH_CONFIG_DIR"] def test_cloudmesh_in_cwd(self): HEADING() diff --git a/tests/test_shell_tests.py b/tests/test_shell_tests.py index e815302d..b6d76668 100644 --- a/tests/test_shell_tests.py +++ b/tests/test_shell_tests.py @@ -142,7 +142,7 @@ def test_map_filename(self): assert os.path.exists(path_expand('./tmp')) == False Benchmark.Stop() - + @pytest.mark.skipif(github_action, reason='GitHub Runner is headless, and GUI is not possible, so this is skipped.') def test_open(self): HEADING() Benchmark.Start()