Flask - Testing Flask Applications
Given this fixture and test code, what will be printed when running the test?
@pytest.fixture
def sample():
print('Setup')
yield 'data'
print('Teardown')
def test_example(sample):
print(f'Test received: {sample}')