Merge pull request #270 from pre-commit/tmpdir_factory_to_tempdir_fac… · precommit/pre-commit@a5cf7d0 · GitHub
Skip to content

Commit a5cf7d0

Browse files
committed
Merge pull request pre-commit#270 from pre-commit/tmpdir_factory_to_tempdir_factory
git grep -l tmpdir_factory | xargs sed -i 's/tmpdir_factory/tempdir_factory/g'
2 parents 5791d84 + 1dfcf10 commit a5cf7d0

14 files changed

Lines changed: 199 additions & 199 deletions

requirements-dev.txt

Lines changed: 1 addition & 1 deletion

testing/fixtures.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
from testing.util import get_resource_path
2020

2121

22-
def git_dir(tmpdir_factory):
23-
path = tmpdir_factory.get()
22+
def git_dir(tempdir_factory):
23+
path = tempdir_factory.get()
2424
with cwd(path):
2525
cmd_output('git', 'init')
2626
return path
2727

2828

29-
def make_repo(tmpdir_factory, repo_source):
30-
path = git_dir(tmpdir_factory)
29+
def make_repo(tempdir_factory, repo_source):
30+
path = git_dir(tempdir_factory)
3131
copy_tree_to_path(get_resource_path(repo_source), path)
3232
with cwd(path):
3333
cmd_output('git', 'add', '.')
@@ -83,8 +83,8 @@ def add_config_to_repo(git_path, config):
8383
return git_path
8484

8585

86-
def make_consuming_repo(tmpdir_factory, repo_source):
87-
path = make_repo(tmpdir_factory, repo_source)
86+
def make_consuming_repo(tempdir_factory, repo_source):
87+
path = make_repo(tempdir_factory, repo_source)
8888
config = make_config_from_repo(path)
89-
git_path = git_dir(tmpdir_factory)
89+
git_path = git_dir(tempdir_factory)
9090
return add_config_to_repo(git_path, config)

tests/commands/autoupdate_test.py

Lines changed: 8 additions & 8 deletions

0 commit comments

Comments
 (0)