This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch validation in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit dc8c5fb9fbbe4bacffbd84568913b4224365398c Author: Tristan Maat <[email protected]> AuthorDate: Thu Sep 7 14:59:23 2017 +0100 Fix affected test cases --- tests/project/project.py | 2 +- tests/sources/git.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/project/project.py b/tests/project/project.py index f4c5b3e..c8f7909 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 43a64a0..a3649a8 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)
