summaryrefslogtreecommitdiff
path: root/morphlib/remoteartifactcache_tests.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-09-10 09:09:23 +0000
committerRichard Maw <richard.maw@gmail.com>2014-09-19 12:43:26 +0000
commit15d1a32331883c3057fc3965b1f61dbfe0ae478d (patch)
treec53c383b17cfabc0ad82b7b63966261d58bcaec6 /morphlib/remoteartifactcache_tests.py
parent30bd3185050bc7997a032ca32f0a5ac9b5e76ed9 (diff)
downloadmorph-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/remoteartifactcache_tests.py')
-rw-r--r--morphlib/remoteartifactcache_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/remoteartifactcache_tests.py b/morphlib/remoteartifactcache_tests.py
index 3ee181ee..788882c2 100644
--- a/morphlib/remoteartifactcache_tests.py
+++ b/morphlib/remoteartifactcache_tests.py
@@ -43,8 +43,10 @@ class RemoteArtifactCacheTests(unittest.TestCase):
include:
- usr/share/doc
''')
- self.source = morphlib.source.Source(
- 'repo', 'ref', 'sha1', 'tree', morph, 'chunk.morph')
+ sources = morphlib.source.make_sources('repo', 'original/ref',
+ 'chunk.morph', 'sha1',
+ 'tree', morph)
+ self.source, = sources
self.runtime_artifact = morphlib.artifact.Artifact(
self.source, 'chunk-runtime')
self.runtime_artifact.cache_key = 'CHUNK'