PyTest - Fixtures
Examine the following pytest fixture code:
What is the main issue with this fixture?
import pytest
def sample_fixture(request):
def cleanup():
print('Cleaning up')
cleanup()
request.addfinalizer(cleanup)
return 42What is the main issue with this fixture?
