summaryrefslogtreecommitdiff
path: root/morphlib/localartifactcache.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-06-07 11:00:08 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-06-07 12:30:39 +0000
commit40cdee7b390a3f9efeb7dd4ecb547cdc513474b4 (patch)
tree4bce73abe4aee5031b68e0fbc9a5d1d00bcd21e2 /morphlib/localartifactcache.py
parentdef5cd6f2a5c037c05173f023239a4d2b0babee0 (diff)
downloadmorph-40cdee7b390a3f9efeb7dd4ecb547cdc513474b4.tar.gz
lac_tests: Cover list and delete
Diffstat (limited to 'morphlib/localartifactcache.py')
-rw-r--r--morphlib/localartifactcache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/localartifactcache.py b/morphlib/localartifactcache.py
index d8abf2ad..76d085d1 100644
--- a/morphlib/localartifactcache.py
+++ b/morphlib/localartifactcache.py
@@ -116,7 +116,7 @@ class LocalArtifactCache(object):
for basename in basenames:
os.remove(os.path.join(dirname, basename))
- def list_contents(self): # pragma: no cover
+ def list_contents(self):
'''Return the set of sources cached and related information.
returns a [(cache_key, set(artifacts), last_used)]
@@ -137,7 +137,7 @@ class LocalArtifactCache(object):
for cache_key, info in contents.iteritems())
- def remove(self, cachekey): # pragma: no cover
+ def remove(self, cachekey):
'''Remove all artifacts associated with the given cachekey.'''
for dirpath, dirnames, filenames in os.walk(self.cachedir):
for filename in filenames: