Skip to content

Commit

Permalink
pytest init
Browse files Browse the repository at this point in the history
  • Loading branch information
Mislav Cimperšak committed Oct 2, 2017
1 parent 2ba00f7 commit 605763e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
@@ -0,0 +1,9 @@
[run]
branch = True
source = .

[report]
show_missing = True
omit =
*/tests/*
*/test_*.py
3 changes: 3 additions & 0 deletions pytest.ini
@@ -0,0 +1,3 @@
[pytest]
addopts = --cov
python_files = tests* test_*.py
5 changes: 5 additions & 0 deletions requirements_testing.txt
@@ -0,0 +1,5 @@
-r requirements.txt

pytest
pytest-cov
pytest-sugar
Empty file added tests/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions tests/test_function.py
@@ -0,0 +1,2 @@
def test_dummy():
assert 1 + 1 == 2

0 comments on commit 605763e

Please sign in to comment.