Merge pull request #3059 from quay/joseph.schorr/QUAY-906/reg-tests

Move registry integration tests to py.test
This commit is contained in:
Joseph Schorr 2018-05-22 17:09:11 -04:00 committed by GitHub
commit 6ffafe44d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 2149 additions and 204 deletions

2
data/cache/impl.py vendored
View file

@ -40,7 +40,7 @@ class NoopDataModelCache(DataModelCache):
class InMemoryDataModelCache(DataModelCache):
""" Implementation of the data model cache backed by an in-memory dictionary. """
def __init__(self):
self.cache = ExpiresDict(rebuilder=lambda: {})
self.cache = ExpiresDict()
def retrieve(self, cache_key, loader, should_cache=is_not_none):
not_found = [None]