mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Simplify the install and uninstall commands and improve tests.
This commit is contained in:
parent
48bbc68b35
commit
ecdacd474b
7 changed files with 82 additions and 52 deletions
|
|
@ -53,3 +53,9 @@ def test_repositories(consumer_repo):
|
|||
'git@github.com:pre-commit/pre-commit-hooks',
|
||||
'git@github.com:pre-commit/pre-commit',
|
||||
]
|
||||
|
||||
|
||||
def test_pre_commit_path():
|
||||
runner = Runner('foo/bar')
|
||||
expected_path = os.path.join('foo/bar', '.git/hooks/pre-commit')
|
||||
assert runner.pre_commit_path == expected_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue