Skip to content

Commit 8596323

Browse files
committed
adding test step
1 parent d107584 commit 8596323

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ lint:
1313

1414
test:
1515
# setup test
16+
python -m pytest -vv --cov=mylib test/test_logic.py
1617

1718
deploy:
1819
# setup deoply
1920

2021
all: install format lint test deploy
22+
23+
.PHONY: all test # make test does not work without this line

test/test_logic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from mylib.logic import wiki
2+
3+
def test_wiki():
4+
result = wiki()
5+
assert "god" in result

0 commit comments

Comments
 (0)