mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
code cleanup based off asottile comments
This commit is contained in:
parent
44c6676070
commit
7c6b842a92
3 changed files with 13 additions and 14 deletions
|
|
@ -17,12 +17,18 @@ def test_master_branch(temp_git_dir):
|
|||
assert is_on_branch('master') is True
|
||||
|
||||
|
||||
def test_main_other_call(temp_git_dir):
|
||||
def test_main_b_call(temp_git_dir):
|
||||
with temp_git_dir.as_cwd():
|
||||
cmd_output('git', 'checkout', '-b', 'other')
|
||||
assert main(['-b', 'other']) == 1
|
||||
|
||||
|
||||
def test_main_branch_call(temp_git_dir):
|
||||
with temp_git_dir.as_cwd():
|
||||
cmd_output('git', 'checkout', '-b', 'other')
|
||||
assert main(['--branch', 'other']) == 1
|
||||
|
||||
|
||||
def test_main_default_call(temp_git_dir):
|
||||
with temp_git_dir.as_cwd():
|
||||
cmd_output('git', 'checkout', '-b', 'anotherbranch')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue