コード例 #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))
コード例 #2
0
def get_repo(request: FixtureRequest,
             tmp_path_factory: TempPathFactory) -> Repo:
    tmp_dir = _mk_tmp(request, tmp_path_factory)
    return Repo(tmp_dir)
コード例 #3
0
ファイル: conftest.py プロジェクト: LilSpazJoekp/asyncpraw
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)
コード例 #4
0
 def tmp_path(request, tmp_path_factory):
     return Path(str(_mk_tmp(request, tmp_path_factory)))