mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Resolves cwd problem
This commit is contained in:
parent
6f0d566199
commit
216b5c6ab1
13 changed files with 212 additions and 107 deletions
|
|
@ -61,7 +61,7 @@ def test_pre_commit_path():
|
|||
assert runner.pre_commit_path == expected_path
|
||||
|
||||
|
||||
def test_workspace_runneR():
|
||||
def test_cmd_runner():
|
||||
runner = Runner('foo/bar')
|
||||
ret = runner.workspace_runner
|
||||
assert ret.prefix_dir == C.HOOKS_WORKSPACE + '/'
|
||||
ret = runner.cmd_runner
|
||||
assert ret.prefix_dir == os.path.join('foo/bar', C.HOOKS_WORKSPACE) + '/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue