Project structure for a pytest project
project/
βββ src/
β βββ app.py
β βββ ...
βββ tests/
β βββ conftest.py
β βββ test_login.py
β βββ test_register.py
β βββ ...
βββ pytest.ini
βββ requirements.txt
βββ README.mdsrc/: directory for application code.tests/: directory for test code.conftest.py: file containing fixtures and hooks used across all tests.test_login.py,test_register.py, etc.: test files containing test functions.pytest.ini: configuration file for pytest.requirements.txt: file containing project dependencies.README.md: file containing project documentation.
Last updated