diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-09-10 09:09:23 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-09-19 12:43:26 +0000 |
commit | 15d1a32331883c3057fc3965b1f61dbfe0ae478d (patch) | |
tree | c53c383b17cfabc0ad82b7b63966261d58bcaec6 /morphlib/source_tests.py | |
parent | 30bd3185050bc7997a032ca32f0a5ac9b5e76ed9 (diff) | |
download | morph-15d1a32331883c3057fc3965b1f61dbfe0ae478d.tar.gz |
FIXUP: Fix up unit tests from change allowing multiple sources
This is logically part of the previous patch, but has been split out to
ease reviewing.
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) |