Conftestpy
Conftest.py is a special configuration and fixture file used by the Python testing framework pytest. It is named conftest.py by convention and is automatically discovered by pytest in test directories, helping to share fixtures and hooks across tests without importing them explicitly. Some users colloquially refer to the concept as conftestpy, but the official file name remains conftest.py.
Pytest loads conftest.py files from a test directory and all its parent directories, making the fixtures and
Fixtures in conftest.py support common features such as scope (function, class, module, session), parameterization, and autouse.
Best practices include keeping conftest.py lightweight, documenting fixtures, and avoiding heavy imports to minimize test startup