diff options
Diffstat (limited to 'tests/format/junctions.py')
-rw-r--r-- | tests/format/junctions.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/format/junctions.py b/tests/format/junctions.py index 45ccff222..43cd3f7ba 100644 --- a/tests/format/junctions.py +++ b/tests/format/junctions.py @@ -465,3 +465,12 @@ def test_invalid_target_format(cli, tmpdir, datafiles, target): result.assert_main_error(ErrorDomain.ELEMENT, None) assert "'target' option must be in format '{junction-name}:{element-name}'" in result.stderr + + +@pytest.mark.datafiles(DATA_DIR) +def test_junction_show(cli, tmpdir, datafiles): + project = os.path.join(str(datafiles), "foo") + copy_subprojects(project, datafiles, ["base"]) + + # Show, assert that it says junction + assert cli.get_element_state(project, "base.bst") == "junction" |