mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Implement pre-commit init-templatedir
This commit is contained in:
parent
3def940574
commit
9a52eefc99
7 changed files with 114 additions and 9 deletions
|
|
@ -140,6 +140,12 @@ def test_try_repo(mock_store_dir):
|
|||
assert patch.call_count == 1
|
||||
|
||||
|
||||
def test_init_templatedir(mock_store_dir):
|
||||
with mock.patch.object(main, 'init_templatedir') as patch:
|
||||
main.main(('init-templatedir', 'tdir'))
|
||||
assert patch.call_count == 1
|
||||
|
||||
|
||||
def test_help_cmd_in_empty_directory(
|
||||
in_tmpdir,
|
||||
mock_commands,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue