viniciuschiele / flask-apscheduler
Showing 1 of 1 files from the diff.

@@ -17,7 +17,21 @@
Loading
17 17
import base64
18 18
19 19
from flask import request
20 -
from werkzeug.http import bytes_to_wsgi, wsgi_to_bytes
20 +
21 +
22 +
def wsgi_to_bytes(data):
23 +
    """coerce wsgi unicode represented bytes to real ones"""
24 +
    if isinstance(data, bytes):
25 +
        return data
26 +
    return data.encode("latin1")  # XXX: utf8 fallback?
27 +
28 +
29 +
def bytes_to_wsgi(data):
30 +
    assert isinstance(data, bytes), "data must be bytes"
31 +
    if isinstance(data, str):
32 +
        return data
33 +
    else:
34 +
        return data.decode("latin1")
21 35
22 36
23 37
def get_authorization_header():
Files Coverage
flask_apscheduler 94.43%
Project Totals (6 files) 94.43%
131.4
TRAVIS_PYTHON_VERSION=3.4
TRAVIS_OS_NAME=linux
131.3
TRAVIS_PYTHON_VERSION=2.7
TRAVIS_OS_NAME=linux
131.6
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
131.1
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
131.5
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
131.2
TRAVIS_PYTHON_VERSION=3.9
TRAVIS_OS_NAME=linux
131.7
TRAVIS_PYTHON_VERSION=3.7
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