summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-11-11 18:51:09 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-11-12 10:44:05 +0000
commit7b6847cd29d9b19dd6fd11dd73d89417f2dd207e (patch)
treed8ca1607ccde35d7cd5af20d2981dff0353b9a72
parentbc9dff62c572a2f8bb0fffc07d6a6058576ed7fc (diff)
downloadbuildstream-7b6847cd29d9b19dd6fd11dd73d89417f2dd207e.tar.gz
tests/frontend/completions: Fix implicit string concatenation
We expect `INVALID_ELEMENTS` to be a list of element names. However we are missing a comma in between the names, so they end up being concatenated into a single strings. The test passes either way (which is not ideal) because it just checks that the suggested completion is _different_ than the expected in case of errors.
-rw-r--r--tests/frontend/completions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/frontend/completions.py b/tests/frontend/completions.py
index 5df873666..3352ddcc9 100644
--- a/tests/frontend/completions.py
+++ b/tests/frontend/completions.py
@@ -86,8 +86,8 @@ PROJECT_ELEMENTS = [
]
INVALID_ELEMENTS = [
- "target.foo"
- "target.bst.bar"
+ "target.foo",
+ "target.bst.bar",
]
MIXED_ELEMENTS = PROJECT_ELEMENTS + INVALID_ELEMENTS