diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..321e5ca --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = */tests/* diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8d28af0..ad2d76d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ What’s new in django-cachalot? ----- - Fix bug with externally invalidated cache keys (#120) +- Omit test files in coverage 2.3.3 ----- diff --git a/cachalot/__init__.py b/cachalot/__init__.py index 8b0239a..58e8612 100644 --- a/cachalot/__init__.py +++ b/cachalot/__init__.py @@ -1,4 +1,4 @@ -VERSION = (2, 3, 3) +VERSION = (2, 3, 4) __version__ = '.'.join(map(str, VERSION)) -default_app_config = 'cachalot.apps.CachalotConfig' +default_app_config = "cachalot.apps.CachalotConfig" diff --git a/cachalot/api.py b/cachalot/api.py index 5458444..5f9056b 100644 --- a/cachalot/api.py +++ b/cachalot/api.py @@ -139,9 +139,7 @@ def cachalot_disabled(all_queries=False): Context manager for temporarily disabling cachalot. If you evaluate the same queryset a second time, like normally for Django querysets, this will access - the variable that saved it in-memory. - - For example: + the variable that saved it in-memory. For example: .. code-block:: python