From e7d6489cce98c2e59b85c73609f3d1ea03939570 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 17 Jun 2015 21:03:49 +0000 Subject: sourceresolver_tests: Fix invalid backup definition If we did end up trying to load a morphology that wasn't defined, we'd get an unhelpful error about the yaml being invalid. Change-Id: If1b182f1100430424a0fe62bd8938a88c1b9a11a --- morphlib/sourceresolver_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/morphlib/sourceresolver_tests.py b/morphlib/sourceresolver_tests.py index 956ec40c..07428496 100644 --- a/morphlib/sourceresolver_tests.py +++ b/morphlib/sourceresolver_tests.py @@ -116,7 +116,8 @@ class FakeLocalRepo(object): } return self.morphologies[filename] % values elif filename.endswith('.morph'): - return '''name: %s + return ''' + name: %s kind: chunk build-system: dummy''' % filename[:-len('.morph')] return 'text' -- cgit v1.2.1