def METHOD_NAME(tmpdir_factory):
    global _LEAPP_RERUN_CONFIG
    global _LEAPP_DB_PATH
    tmpdir = tmpdir_factory.mktemp('leapp-rerun')
    _LEAPP_DB_PATH = str(tmpdir.join('leapp.db'))
    config = tmpdir.join('leappconfig')
    repo_test_path = os.path.join(os.path.dirname(os.path.dirname(
        os.path.realpath(__file__))), 'data/leapp-rerun-tests-repos')
    _LEAPP_RERUN_CONFIG = str(config)
    config.write('''