Skip to content

Commit

Permalink
[qa] Updated test qa without token set
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabcd committed Nov 22, 2018
1 parent a04577c commit 03f83f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_project/tests/test_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,23 @@ def test_qa_call_check_commit_message_failure(self):
'--commit', '1',
'--repo', '2'
],
['commitcheck']
['commitcheck'],
[
'commitcheck', '--token', 'Deleted Token Test'
]
]
i = 0
for option in options:
if i == 5:
del os.environ["GH_TOKEN"]
with patch('argparse._sys.argv', option):
try:
check_commit_message()
except (SystemExit, Exception):
pass
else:
self.fail('SystemExit or Exception not raised')
i += 1

def tearDown(self):
os.unlink(self._test_migration_file)

0 comments on commit 03f83f3

Please sign in to comment.