Skip to content

Commit

Permalink
Coverage for tests
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
moggers87 committed Nov 30, 2019
1 parent 00213db commit 5e8ccac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
source = sendfile
omit =
sendfile/_version.py
sendfile/tests.py
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python:
- pypy2.7-6.0
- pypy3.5-6.0

install: travis_retry pip install -q tox
install: travis_retry pip install -q codecov tox

script: tox -e py # run tox for the current version of Python

Expand All @@ -20,3 +20,5 @@ matrix:
- python: "3.6"
env: TOX_ENV=flake8
script: tox -e $TOX_ENV

after_success: codecov
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ deps =
django111: Django>=1.11,<1.12
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
coverage
changedir = examples/protected_downloads
commands =
python --version
python manage.py test sendfile {posargs}

coverage run --branch manage.py test sendfile {posargs}
coverage report

[testenv:flake8]
basepython=python
Expand Down

0 comments on commit 5e8ccac

Please sign in to comment.