Ejemplo n.º 1
0
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))
Ejemplo n.º 2
0
def get_repo(request: FixtureRequest,
             tmp_path_factory: TempPathFactory) -> Repo:
    tmp_dir = _mk_tmp(request, tmp_path_factory)
    return Repo(tmp_dir)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
 def tmp_path(request, tmp_path_factory):
     return Path(str(_mk_tmp(request, tmp_path_factory)))