Skip to content

Commit 1d00560

Browse files
committed
fixup
1 parent 7f2a196 commit 1d00560

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/func/test_install.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TestInstall(object):
1616
def _hook(self, name):
1717
return pathlib.Path(".git") / "hooks" / name
1818

19-
def test_should_create_hooks(self, scm, dvc):
19+
def test_create_hooks(self, scm, dvc):
2020
scm.install()
2121

2222
hooks_with_commands = [
@@ -30,13 +30,13 @@ def test_should_create_hooks(self, scm, dvc):
3030
assert hook_path.is_file()
3131
assert command in hook_path.read_text()
3232

33-
def test_should_fail_if_file_already_exists(self, scm):
33+
def test_fail_if_hook_exists(self, scm):
3434
self._hook("post-checkout").write_text("hook content")
3535

3636
with pytest.raises(GitHookAlreadyExistsError):
3737
scm.install()
3838

39-
def test_should_post_checkout_hook_checkout(self, tmp_dir, scm, dvc):
39+
def test_post_checkout(self, tmp_dir, scm, dvc):
4040
scm.install()
4141
tmp_dir.dvc_gen({"file": "file content"}, commit="add")
4242

@@ -45,9 +45,7 @@ def test_should_post_checkout_hook_checkout(self, tmp_dir, scm, dvc):
4545

4646
assert os.path.isfile("file")
4747

48-
def test_should_pre_push_hook_push(
49-
self, tmp_dir, scm, dvc, tmp_path_factory
50-
):
48+
def test_pre_push_hook(self, tmp_dir, scm, dvc, tmp_path_factory):
5149
scm.install()
5250

5351
temp = tmp_path_factory.mktemp("external")

0 commit comments

Comments
 (0)