diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-09-22 09:22:56 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-09-22 09:22:56 +0000 |
commit | cb7eed0a589c7b2ea62ca6df789422d09b9dcb43 (patch) | |
tree | e6bb5d5c4e06f14de98569298cc00e3fcbbf829f /morphlib/source_tests.py | |
parent | e62eced3044c2383de3029e9d7ae2b2649704e80 (diff) | |
parent | 945c60a1aa0b48f49c08e70206a5ca24f1c710bb (diff) | |
download | morph-cb7eed0a589c7b2ea62ca6df789422d09b9dcb43.tar.gz |
Merge branch 'baserock/richardmaw-os/tidy-build-logic-v7'
Reviewed-by: Lars Wirzenius (+2 to misc fixups)
Reviewed-by: Sam Thursfield (+1 to per-source building)
Reviewed-by: Paul Sherwood (+1 to per-source building)
Diffstat (limited to 'morphlib/source_tests.py')
-rw-r--r-- | morphlib/source_tests.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/morphlib/source_tests.py b/morphlib/source_tests.py index f5ce5d4d..695041d3 100644 --- a/morphlib/source_tests.py +++ b/morphlib/source_tests.py @@ -34,12 +34,11 @@ class SourceTests(unittest.TestCase): loader = morphlib.morphloader.MorphologyLoader() self.morphology = loader.load_from_string(self.morphology_text) self.filename = 'foo.morph' - self.source = morphlib.source.Source( - self.repo_name, self.original_ref, self.sha1, self.tree, - self.morphology, self.filename) - self.other = morphlib.source.Source( - self.repo_name, self.original_ref, self.sha1, self.tree, - self.morphology, self.filename) + self.source, = morphlib.source.make_sources(self.repo_name, + self.original_ref, + self.filename, + self.sha1, self.tree, + self.morphology) def test_sets_repo_name(self): self.assertEqual(self.source.repo_name, self.repo_name) |