summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-11 19:44:07 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-11 19:44:41 +0900
commitf72aa20388af8cbb47c2bf575684a97b38fc01ae (patch)
treea01dafd85e05e2c2d343cf1c8f9f003ac0d72da1
parentf1c4825abdc71ec7deeb80555fa8392cd33652bc (diff)
downloadbuildstream-f72aa20388af8cbb47c2bf575684a97b38fc01ae.tar.gz
tests/frontend/workspace.py: Removing tests
Remove tests which check for a user message to be issued upon closing a workspace who's metadata was used to launch BuildStream and find the BuildStream project directory.
-rw-r--r--tests/frontend/workspace.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py
index b450d18f4..4aae61ad7 100644
--- a/tests/frontend/workspace.py
+++ b/tests/frontend/workspace.py
@@ -1100,36 +1100,6 @@ def test_external_open_other(cli, datafiles, tmpdir_factory):
@pytest.mark.datafiles(DATA_DIR)
-def test_external_close_other(cli, datafiles, tmpdir_factory):
- # From inside an external workspace, close the other workspace
- tmpdir1 = tmpdir_factory.mktemp(BASE_FILENAME)
- tmpdir2 = tmpdir_factory.mktemp(BASE_FILENAME)
- # Making use of the assumption that it's the same project in both invocations of open_workspace
- _, project, alpha_workspace = open_workspace(cli, tmpdir1, datafiles, "git", suffix="-alpha")
- beta_element, _, _ = open_workspace(cli, tmpdir2, datafiles, "git", suffix="-beta")
-
- result = cli.run(project=project, args=["-C", alpha_workspace, "workspace", "close", beta_element])
- result.assert_success()
- assert "you can no longer run BuildStream" not in result.stderr
-
-
-@pytest.mark.datafiles(DATA_DIR)
-@pytest.mark.parametrize("guess_element", [True, False], ids=["guess", "no-guess"])
-def test_external_close_self(cli, datafiles, tmpdir_factory, guess_element):
- # From inside an external workspace, close it
- tmpdir1 = tmpdir_factory.mktemp(BASE_FILENAME)
- tmpdir2 = tmpdir_factory.mktemp(BASE_FILENAME)
- # Making use of the assumption that it's the same project in both invocations of open_workspace
- alpha_element, project, alpha_workspace = open_workspace(cli, tmpdir1, datafiles, "git", suffix="-alpha")
- _, _, _ = open_workspace(cli, tmpdir2, datafiles, "git", suffix="-beta")
- arg_elm = [alpha_element] if not guess_element else []
-
- result = cli.run(project=project, args=["-C", alpha_workspace, "workspace", "close", *arg_elm])
- result.assert_success()
- assert "you can no longer run BuildStream" in result.stderr
-
-
-@pytest.mark.datafiles(DATA_DIR)
def test_external_reset_other(cli, datafiles, tmpdir_factory):
tmpdir1 = tmpdir_factory.mktemp(BASE_FILENAME)
tmpdir2 = tmpdir_factory.mktemp(BASE_FILENAME)