summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-09-07 14:59:23 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2017-09-08 10:46:26 +0100
commitdc8c5fb9fbbe4bacffbd84568913b4224365398c (patch)
tree9b5d3a7a327b08cd169a520bb989ea14bec8778d
parentbe94c716210b7e9530be67dd20a8c625d7b731ae (diff)
downloadbuildstream-validation.tar.gz
Fix affected test casesvalidation
-rw-r--r--tests/project/project.py2
-rw-r--r--tests/sources/git.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/project/project.py b/tests/project/project.py
index f4c5b3ead..c8f7909f0 100644
--- a/tests/project/project.py
+++ b/tests/project/project.py
@@ -29,7 +29,7 @@ def test_missing_project_name(datafiles):
project = Project(directory, 'x86_64')
project._resolve(None)
- assert (exc.value.reason == LoadErrorReason.INVALID_DATA)
+ assert (exc.value.reason == LoadErrorReason.INVALID_YAML)
@pytest.mark.datafiles(os.path.join(DATA_DIR))
diff --git a/tests/sources/git.py b/tests/sources/git.py
index 43a64a0c8..a3649a863 100644
--- a/tests/sources/git.py
+++ b/tests/sources/git.py
@@ -80,9 +80,9 @@ class GitSubmoduleSetup(GitSetup):
if url:
template += " ref: {ref}\n"
- template += "submodules:\n" + \
- " subrepo:\n" + \
- " url: {subrepo}\n"
+ template += " submodules:\n" + \
+ " subrepo:\n" + \
+ " url: {subrepo}\n"
final = template.format(url=url, ref=ref, track=track, subrepo=self.subrepo_url)