Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/foo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def bar():
return True
4 changes: 0 additions & 4 deletions python/foo_test.py

This file was deleted.

14 changes: 14 additions & 0 deletions python/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# kata setup for python using pytest

## Installation
`pip install -r requirements.txt`

## Usage
Run the tests :
`pytest tests/`

Get more info:
`pytest -vv tests/`

Get coverage :
`pytest --cov-report term-missing --cov=foo tests/`
2 changes: 2 additions & 0 deletions python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest
pytest-cov
File renamed without changes.
9 changes: 9 additions & 0 deletions python/tests/test_foo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from foo import bar


def test_that_bar_is_true():
assert bar()


def test_that_bar_is_false():
assert bar() is False