From 1d00560612d6ec8fbeb0415d2f5b0555009f16ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Tue, 7 Jan 2020 10:16:32 +0100 Subject: [PATCH] fixup --- tests/func/test_install.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/func/test_install.py b/tests/func/test_install.py index ba7d2d7e9..311b21905 100644 --- a/tests/func/test_install.py +++ b/tests/func/test_install.py @@ -16,7 +16,7 @@ class TestInstall(object): def _hook(self, name): return pathlib.Path(".git") / "hooks" / name - def test_should_create_hooks(self, scm, dvc): + def test_create_hooks(self, scm, dvc): scm.install() hooks_with_commands = [ @@ -30,13 +30,13 @@ class TestInstall(object): assert hook_path.is_file() assert command in hook_path.read_text() - def test_should_fail_if_file_already_exists(self, scm): + def test_fail_if_hook_exists(self, scm): self._hook("post-checkout").write_text("hook content") with pytest.raises(GitHookAlreadyExistsError): scm.install() - def test_should_post_checkout_hook_checkout(self, tmp_dir, scm, dvc): + def test_post_checkout(self, tmp_dir, scm, dvc): scm.install() tmp_dir.dvc_gen({"file": "file content"}, commit="add") @@ -45,9 +45,7 @@ class TestInstall(object): assert os.path.isfile("file") - def test_should_pre_push_hook_push( - self, tmp_dir, scm, dvc, tmp_path_factory - ): + def test_pre_push_hook(self, tmp_dir, scm, dvc, tmp_path_factory): scm.install() temp = tmp_path_factory.mktemp("external")