summaryrefslogtreecommitdiff
path: root/tests/completions/completions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/completions/completions.py')
-rw-r--r--tests/completions/completions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/completions/completions.py b/tests/completions/completions.py
index 1ff026ea5..50b41f7b3 100644
--- a/tests/completions/completions.py
+++ b/tests/completions/completions.py
@@ -212,6 +212,10 @@ def test_option_directory(datafiles, cli, cmd, word_idx, expected, subdir):
# Also try multi arguments together
('no-element-path', 'bst --directory ../ checkout t ', 4, ['target.bst '], 'files'),
('no-element-path', 'bst --directory ../ checkout target.bst ', 5, ['bin-files/', 'dev-files/'], 'files'),
+
+ # When element-path have sub-folders
+ ('sub-folders', 'bst show base', 2, ['base/wanted.bst '], None),
+ ('sub-folders', 'bst show base/', 2, ['base/wanted.bst '], None),
])
def test_argument_element(datafiles, cli, project, cmd, word_idx, expected, subdir):
cwd = os.path.join(str(datafiles), project)