Make autoupdate --tags-only the default, add --bleeding-edge

This commit is contained in:
Anthony Sottile 2017-04-29 14:32:02 -07:00
parent 1be4e4f82e
commit 918179849d
4 changed files with 28 additions and 12 deletions

View file

@ -127,3 +127,8 @@ def test_expected_fatal_error_no_git_repo(
'Is it installed, and are you in a Git repository directory?\n'
'Check the log at ~/.pre-commit/pre-commit.log\n'
)
def test_warning_on_tags_only(mock_commands, cap_out):
main.main(('autoupdate', '--tags-only'))
assert '--tags-only is the default' in cap_out.get()