From 40cdee7b390a3f9efeb7dd4ecb547cdc513474b4 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 7 Jun 2013 11:00:08 +0000 Subject: lac_tests: Cover list and delete --- morphlib/localartifactcache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'morphlib/localartifactcache.py') 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: -- cgit v1.2.1