mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-06 15:29:14 -05:00
Simplify the install and uninstall commands and improve tests.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user