summaryrefslogtreecommitdiff
path: root/tests/frontend/cross_junction_workspace.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frontend/cross_junction_workspace.py')
-rw-r--r--tests/frontend/cross_junction_workspace.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/frontend/cross_junction_workspace.py b/tests/frontend/cross_junction_workspace.py
index 5e25d1fa8..c3b80ae0a 100644
--- a/tests/frontend/cross_junction_workspace.py
+++ b/tests/frontend/cross_junction_workspace.py
@@ -48,15 +48,18 @@ def prepare_junction_project(cli, tmpdir):
def open_cross_junction(cli, tmpdir):
project = prepare_junction_project(cli, tmpdir)
- workspace = tmpdir.join("workspace")
-
element = "sub.bst:data.bst"
+
+ oldkey = cli.get_element_key(project, element)
+
+ workspace = tmpdir.join("workspace")
args = ["workspace", "open", "--directory", str(workspace), element]
result = cli.run(project=project, args=args)
result.assert_success()
assert cli.get_element_state(project, element) == "buildable"
assert os.path.exists(str(workspace.join("hello.txt")))
+ assert cli.get_element_key(project, element) != oldkey
return project, workspace