pytest init

This commit is contained in:
Mislav Cimperšak 2017-10-02 21:53:37 +02:00
parent 2ba00f7e53
commit 605763e38b
5 changed files with 19 additions and 0 deletions

9
.coveragerc Normal file
View File

@ -0,0 +1,9 @@
[run]
branch = True
source = .
[report]
show_missing = True
omit =
*/tests/*
*/test_*.py

3
pytest.ini Normal file
View File

@ -0,0 +1,3 @@
[pytest]
addopts = --cov
python_files = tests* test_*.py

5
requirements_testing.txt Normal file
View File

@ -0,0 +1,5 @@
-r requirements.txt
pytest
pytest-cov
pytest-sugar

0
tests/__init__.py Normal file
View File

2
tests/test_function.py Normal file
View File

@ -0,0 +1,2 @@
def test_dummy():
assert 1 + 1 == 2