Mike Bayer avatar Mike Bayer committed 20b6408

add some no coverages. we should at least add a test_util, though

Comments (0)

Files changed (2)

dogpile/cache/api.py

         return self
 
     if py3k:
-        def __bool__(self):
+        def __bool__(self): #pragma NO COVERAGE
             return False
     else:
-        def __nonzero__(self):
+        def __nonzero__(self): #pragma NO COVERAGE
             return False
 
 NO_VALUE = NoValue()
 
     """
 
-    def __init__(self, arguments):
+    def __init__(self, arguments): #pragma NO COVERAGE
         """Construct a new :class:`.CacheBackend`.
         
         Subclasses should override this to
         """
         return None
 
-    def get(self, key):
+    def get(self, key): #pragma NO COVERAGE
         """Retrieve a value from the cache.
         
         The returned value should be an instance of
         """
         raise NotImplementedError()
 
-    def set(self, key, value):
+    def set(self, key, value): #pragma NO COVERAGE
         """Set a value in the cache.
         
         The key will be whatever was passed
         """
         raise NotImplementedError()
 
-    def delete(self, key):
+    def delete(self, key): #pragma NO COVERAGE
         """Delete a value from the cache.
         
         The key will be whatever was passed

dogpile/cache/util.py

     def load(self, name):
         if name in self.impls:
              return self.impls[name]()
-        else:
+        else: #pragma NO COVERAGE
+            # TODO: if someone has ideas on how to
+            # unit test entrypoint stuff, let me know.
             import pkg_resources
             for impl in pkg_resources.iter_entry_points(
                                 self.group, 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.