code cleanup based off asottile comments

This commit is contained in:
Evan J. Felix 2017-03-17 15:34:23 -07:00
parent 44c6676070
commit 7c6b842a92
3 changed files with 13 additions and 14 deletions

View file

@ -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')