mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
Added path function to PrefixedCommandRunner
This commit is contained in:
parent
bd6e62e28d
commit
6f0d566199
4 changed files with 44 additions and 12 deletions
|
|
@ -59,3 +59,9 @@ 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
|
||||
|
||||
|
||||
def test_workspace_runneR():
|
||||
runner = Runner('foo/bar')
|
||||
ret = runner.workspace_runner
|
||||
assert ret.prefix_dir == C.HOOKS_WORKSPACE + '/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue