PyTest - Fixtures
You want a pytest fixture to initialize a database connection once before all tests in multiple modules run, and close it after all tests finish. Which scope should you use and why?
session scope to share across all tests in the run. -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions