summaryrefslogtreecommitdiff
path: root/morphlib/source_tests.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-09-05 17:12:26 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-09-05 17:12:26 +0000
commitb9488584415d94fc28c2e064b917183b851af07b (patch)
treeebdb4f647c43afd633fcc5243e26ef24c6096628 /morphlib/source_tests.py
parent083fd4de011e0fcf4a445b38a7fa6ef8964a5ccb (diff)
downloadmorph-b9488584415d94fc28c2e064b917183b851af07b.tar.gz
Resolve tree SHA1 along with commit SHA1 when resolving refs
Adjust all other parts and the tests to work with this.
Diffstat (limited to 'morphlib/source_tests.py')
-rw-r--r--morphlib/source_tests.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/morphlib/source_tests.py b/morphlib/source_tests.py
index 7ad5d370..6643f0fc 100644
--- a/morphlib/source_tests.py
+++ b/morphlib/source_tests.py
@@ -32,14 +32,15 @@ class SourceTests(unittest.TestCase):
self.repo_name = 'foo.repo'
self.original_ref = 'original/ref'
self.sha1 = 'CAFEF00D'
+ self.tree = 'F000000D'
self.morphology = morphlib.morph2.Morphology(self.morphology_text)
self.filename = 'foo.morph'
self.source = morphlib.source.Source(
- self.repo_name, self.original_ref, self.sha1, self.morphology,
- self.filename)
+ 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.morphology,
- self.filename)
+ self.repo_name, self.original_ref, self.sha1, self.tree,
+ self.morphology, self.filename)
def test_sets_repo_name(self):
self.assertEqual(self.source.repo_name, self.repo_name)