def create_contribution_converter(request: FixtureRequest, tmp_path_factory: TempPathFactory) -> ContributionConverter: tmp_dir = _mk_tmp(request, tmp_path_factory) return ContributionConverter(name=request.param, base_dir=str(tmp_dir))
def get_repo(request: FixtureRequest, tmp_path_factory: TempPathFactory) -> Repo: tmp_dir = _mk_tmp(request, tmp_path_factory) return Repo(tmp_dir)
def tmp_path(request, tmp_path_factory): # Manually create tmp_path fixture since asynctest does not play nicely with # fixtures as args request.cls.tmp_path = _mk_tmp(request, tmp_path_factory)
def tmp_path(request, tmp_path_factory): return Path(str(_mk_tmp(request, tmp_path_factory)))