Commits

Mike Bayer committed 20b6408

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

  • Participants
  • Parent commits 7988cca

Comments (0)

Files changed (2)

File 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

File 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,