PyTest - Fixtures
You want to ensure a database connection is closed after each test using a fixture. Which approach correctly uses
request.addfinalizer to close the connection?request.addfinalizer to close the connection?conn.close() and registers it with request.addfinalizer.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions