From dc8c5fb9fbbe4bacffbd84568913b4224365398c Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Thu, 7 Sep 2017 14:59:23 +0100 Subject: 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 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) -- cgit v1.2.1