Implement pre-commit init-templatedir

This commit is contained in:
Anthony Sottile 2019-07-20 19:10:50 -07:00
parent 3def940574
commit 9a52eefc99
7 changed files with 114 additions and 9 deletions

View file

@ -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,