Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Nov 26, 2023
1 parent 3ea54b6 commit 7ba7acd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/ssh/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_shell_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7ba7acd

Please sign in to comment.