def METHOD_NAME(self, mock_data) -> None:
    # Test the case where the artifacts require the repo, but we can't
    # find it.
    # Force the value of `artifacts_require_repo` to True so we can force
    # the error we are testing for
    mock_data.dict = unittest.mock.Mock()
    mock_data.dict.return_value = self._test_repo_config(
        artifacts_require_repo=True,
    )
    with self.assertRaises(UserError):
        _unmemoized_repo_config(path_in_repo=Path("/"))