@pytest.fixture(scope='function')
def shapiro_mock(mocker, linearity_validator_obj):
    shapiro_mock = mocker.patch('analytical_validation.validators.linearity_validator.scipy.stats')
    shapiro_mock.shapiro(linearity_validator_obj.analytical_data).return_value = (0, 1)
    return shapiro_mock
@pytest.fixture(scope='function')
def shapiro_mock(mocker, linearity_validator_obj):
    shapiro_mock = mocker.patch('analytical_validation.validators.linearity_validator.scipy.stats')
    shapiro_mock.shapiro(linearity_validator_obj.analytical_data).return_value = (0, 1)
    return shapiro_mock