summaryrefslogtreecommitdiff
path: root/morphlib/morph2_tests.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-08-28 15:31:29 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-08-29 15:16:28 +0100
commitecefb2d1936221ccf21cbad6db2fe73cd229f4f5 (patch)
treebdf91e898213f0daaa7d4c06598a920f096b5d79 /morphlib/morph2_tests.py
parentf2415383628cb22c5646d96b0e7bbfd6d0629072 (diff)
downloadmorph-ecefb2d1936221ccf21cbad6db2fe73cd229f4f5.tar.gz
Strata contain "chunks", not "sources"
Rename "sources" field of stratum morphologies to "chunks".
Diffstat (limited to 'morphlib/morph2_tests.py')
-rw-r--r--morphlib/morph2_tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/morphlib/morph2_tests.py b/morphlib/morph2_tests.py
index bed6b918..b7d0a7c8 100644
--- a/morphlib/morph2_tests.py
+++ b/morphlib/morph2_tests.py
@@ -38,7 +38,7 @@ class MorphologyTests(unittest.TestCase):
self.assertEqual(m['test-commands'], None)
self.assertEqual(m['install-commands'], None)
self.assertEqual(m['max-jobs'], None)
- self.assertEqual(m['chunks'], {})
+ self.assertEqual(m['chunks'], [])
def test_makes_max_jobs_be_an_integer(self):
m = Morphology('''
@@ -51,12 +51,12 @@ class MorphologyTests(unittest.TestCase):
self.assertEqual(m['max-jobs'], 42)
- def test_sets_stratum_sources_repo_and_morph_from_name(self):
+ def test_sets_stratum_chunks_repo_and_morph_from_name(self):
m = Morphology('''
{
"name": "foo",
"kind": "stratum",
- "sources": [
+ "chunks": [
{
"name": "le-chunk"
}
@@ -64,9 +64,9 @@ class MorphologyTests(unittest.TestCase):
}
''')
- self.assertEqual(m['sources'][0]['repo'], 'le-chunk')
- self.assertEqual(m['sources'][0]['morph'], 'le-chunk')
- self.assertEqual(m['sources'][0]['build-depends'], None)
+ self.assertEqual(m['chunks'][0]['repo'], 'le-chunk')
+ self.assertEqual(m['chunks'][0]['morph'], 'le-chunk')
+ self.assertEqual(m['chunks'][0]['build-depends'], None)
def test_parses_system_disk_size(self):
m = Morphology('''