Superuser
0
Q:

pytest

pip install pytest
0
# content of test_sample.py
def inc(x):
    return x + 1


def test_answer():
    assert inc(3) == 5
1
Just type this in shell:
pytest

Or this if that does nott work:
python -m pytest
0

New to Communities?

Join the community