Skip to content

Commit

Permalink
Patch cache_tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan authored Feb 6, 2023
1 parent e4e1b24 commit 3f1ce0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project/example/core/tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ def missing(self, key, *args, **kwargs):

original = DjangoCache.__missing__
DjangoCache.__missing__ = missing
yield counter
DjangoCache.__missing__ = original
try:
yield counter
finally:
DjangoCache.__missing__ = original


def test_cache_tile(geotiff_path):
Expand Down

0 comments on commit 3f1ce0c

Please sign in to comment.