PyTest - Fixtures
In pytest, how do you correctly register a finalizer function named
teardown within a fixture using the request object?teardown within a fixture using the request object?request.addfinalizer method expects a callable (function) without parentheses.teardown() calls the function immediately, which is incorrect.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions