summaryrefslogtreecommitdiff
path: root/tests/format/invalid_keys.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/format/invalid_keys.py')
-rw-r--r--tests/format/invalid_keys.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/format/invalid_keys.py b/tests/format/invalid_keys.py
index 861cfeabd..ce1e2e487 100644
--- a/tests/format/invalid_keys.py
+++ b/tests/format/invalid_keys.py
@@ -7,21 +7,21 @@ from buildstream._exceptions import ErrorDomain, LoadErrorReason
from buildstream.testing.runcli import cli # pylint: disable=unused-import
# Project directory
-DATA_DIR = os.path.join(
- os.path.dirname(os.path.realpath(__file__)),
- 'invalid-keys'
-)
+DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "invalid-keys")
@pytest.mark.datafiles(DATA_DIR)
-@pytest.mark.parametrize(("element", "location"), [
- ("no-path-specified.bst", "line 4 column 4"),
- ("optional-source.bst", "line 6 column 10"),
- ("included-source.bst", "line 4 column 4"),
-])
+@pytest.mark.parametrize(
+ ("element", "location"),
+ [
+ ("no-path-specified.bst", "line 4 column 4"),
+ ("optional-source.bst", "line 6 column 10"),
+ ("included-source.bst", "line 4 column 4"),
+ ],
+)
def test_compositied_node_fails_usefully(cli, datafiles, element, location):
project = str(datafiles)
- result = cli.run(project=project, args=['show', element])
+ result = cli.run(project=project, args=["show", element])
result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_DATA)
assert "synthetic node" not in result.stderr