PyTest - Test Organization
You want to share a fixture that provides a temporary directory path to all tests in a project. Where should you place this fixture and why?
conftest.py at the root test folder makes it available to all tests in subfolders automatically.conftest.py at the root test folder to share it across all tests correctly places the fixture in conftest.py for project-wide sharing. Others limit scope or are invalid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions