Framework Mode - Test file and function naming conventions
Folder Structure
project-root/ ├── tests/ │ ├── test_login.py │ ├── test_shopping_cart.py │ ├── test_checkout.py │ └── __init__.py ├── src/ │ └── app_code.py ├── conftest.py └── pytest.ini
project-root/ ├── tests/ │ ├── test_login.py │ ├── test_shopping_cart.py │ ├── test_checkout.py │ └── __init__.py ├── src/ │ └── app_code.py ├── conftest.py └── pytest.ini
test_ (e.g., test_login.py), containing test functions also starting with test_.conftest.py holds shared setup code and fixtures.src/ folder.pytest.ini for pytest settings.pytest.ini to configure test discovery patterns, e.g., python_files = test_*.py and python_functions = test_*.test_ prefix to be auto-discovered by pytest.conftest.py for shared fixtures and environment setup.pytest-html to generate readable HTML reports.pytest command.test_ and end with .py for pytest to find them.test_ to be recognized as tests.conftest.py for shared fixtures instead of repeating setup code.Where would you add a new test function for verifying user registration in this framework structure?