PyTest - Fixtures
Consider this pytest fixture setup:
How many times will
import pytest
@pytest.fixture(scope='module')
def db_connection():
print('Connect DB')
yield
print('Disconnect DB')
@pytest.fixture(scope='function')
def user_data():
print('Setup user data')
How many times will
Connect DB and Setup user data print if there are 3 test functions in the module using both fixtures?