2525
2626
2727@pytest .yield_fixture
28- def up_to_date_repo (tmpdir_factory ):
29- yield make_repo (tmpdir_factory , 'python_hooks_repo' )
28+ def up_to_date_repo (tempdir_factory ):
29+ yield make_repo (tempdir_factory , 'python_hooks_repo' )
3030
3131
3232def test_up_to_date_repo (up_to_date_repo , runner_with_mocked_store ):
@@ -53,8 +53,8 @@ def test_autoupdate_up_to_date_repo(
5353
5454
5555@pytest .yield_fixture
56- def out_of_date_repo (tmpdir_factory ):
57- path = make_repo (tmpdir_factory , 'python_hooks_repo' )
56+ def out_of_date_repo (tempdir_factory ):
57+ path = make_repo (tempdir_factory , 'python_hooks_repo' )
5858 original_sha = get_head_sha (path )
5959
6060 # Make a commit
@@ -97,8 +97,8 @@ def test_autoupdate_out_of_date_repo(
9797
9898
9999@pytest .yield_fixture
100- def hook_disappearing_repo (tmpdir_factory ):
101- path = make_repo (tmpdir_factory , 'python_hooks_repo' )
100+ def hook_disappearing_repo (tempdir_factory ):
101+ path = make_repo (tempdir_factory , 'python_hooks_repo' )
102102 original_sha = get_head_sha (path )
103103
104104 with cwd (path ):
@@ -143,8 +143,8 @@ def test_autoupdate_hook_disappearing_repo(
143143 assert before == after
144144
145145
146- def test_autoupdate_local_hooks (tmpdir_factory ):
147- git_path = git_dir (tmpdir_factory )
146+ def test_autoupdate_local_hooks (tempdir_factory ):
147+ git_path = git_dir (tempdir_factory )
148148 config = config_with_local_hooks ()
149149 path = add_config_to_repo (git_path , config )
150150 runner = Runner (path )
0 commit comments