peterbe / django-cache-memoize
Showing 1 of 2 files from the diff.

@@ -1,9 +1,11 @@
Loading
1 1
from functools import wraps
2 2
3 3
import hashlib
4 +
from urllib.parse import quote
5 +
4 6
from django.core.cache import caches, DEFAULT_CACHE_ALIAS
5 7
6 -
from django.utils.encoding import force_text, force_bytes
8 +
from django.utils.encoding import force_bytes
7 9
8 10
MARKER = object()
9 11
@@ -91,8 +93,8 @@
Loading
91 93
    def decorator(func):
92 94
        def _default_make_cache_key(*args, **kwargs):
93 95
            cache_key = ":".join(
94 -
                [force_text(x) for x in args_rewrite(*args)]
95 -
                + [force_text("{}={}".format(k, v)) for k, v in kwargs.items()]
96 +
                [quote(str(x)) for x in args_rewrite(*args)]
97 +
                + [quote("{}={}".format(k, v)) for k, v in kwargs.items()]
96 98
            )
97 99
            return hashlib.md5(
98 100
                force_bytes("cache_memoize" + (prefix or func.__name__) + cache_key)
Files Coverage
src/cache_memoize/__init__.py 100.00%
Project Totals (1 files) 100.00%
72.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
72.3
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
72.4
TRAVIS_PYTHON_VERSION=pypy3
TRAVIS_OS_NAME=linux
72.2
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading