Skip to content

Commit

Permalink
Remove test checking error is raised.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Apr 11, 2024
1 parent b74765f commit a2236ed
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions tests/tests_integration/test_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,35 +94,6 @@ def test_bad_path_syntax(self, project, bad_pattern, path_type, tmp_path):

assert "must contain the full folder path with no " in str(e.value)

@pytest.mark.parametrize("path_type", ["local_path", "central_path"])
def test_non_existant_local_path(
self, no_cfg_project, path_type, non_existent_path, existent_path
):
"""
Check that if the `local_path` and `central_path` that holds the
project root does not exist when passed to configs, that an error
is raised. Note that this error is only raised for `central_path`
if `connection_method` is `"local_filesystem"`.
See `test_additional_error_text_when_ssh_used()` for when ssh is used.
"""
if path_type == "local_path":
local_path = non_existent_path
central_path = existent_path
else:
local_path = existent_path
central_path = non_existent_path

with pytest.raises(BaseException) as e:
no_cfg_project.make_config_file(
local_path / no_cfg_project.project_name,
central_path / no_cfg_project.project_name,
"local_filesystem",
)

assert f"The {path_type}: {non_existent_path} that the project" in str(
e.value
)

def test_additional_error_text_when_ssh_used(
self, no_cfg_project, non_existent_path, existent_path
):
Expand Down

0 comments on commit a2236ed

Please sign in to comment.