pip install pytest
inside the virtual environment
test
folder and a test_<module-name>.py
filetests
foldertest_<module-name>.py
file for each test you want to buildtest_<test-name>():
test_<module-name>.py
file
import pytest
__init__.py
file within the tests
folder in order for tests to initializationpytest-watch
from <module-name> import <function-name>
@pytest.mark.skip()
on the line proceeding the function you want to skipTest Structure
def test_fiz_buzz_7():
actual = fizz_buzz(7)
expected = "Fizz"
assert actual == expected