pytest 1.0 and makefile
This commit is contained in:
8
server/testing/pytest.ini
Normal file
8
server/testing/pytest.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
[pytest]
|
||||
minversion = 6.0
|
||||
testpaths = tests
|
||||
python_files = test_*.py *_test.py
|
||||
python_functions = test_*
|
||||
addopts =
|
||||
-vv
|
||||
--import-mode=importlib
|
||||
7
server/testing/tests/first_test.py
Normal file
7
server/testing/tests/first_test.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# test_math.py
|
||||
def add(a, b):
|
||||
return a + b
|
||||
|
||||
def test_addition():
|
||||
assert add(2, 2) == 4
|
||||
assert add(-1, 1) == 0
|
||||
Reference in New Issue
Block a user