Skip to content

Commit

Permalink
[qa] Updated test_qa openwisp#20
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabcd committed Nov 22, 2018
1 parent 03f83f3 commit 5584fea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_project/tests/test_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,11 @@ def test_qa_call_check_commit_message_failure(self):
],
['commitcheck'],
[
'commitcheck', '--token', 'Deleted Token Test'
'commitcheck', 'delete'
]
]
i = 0
for option in options:
if i == 5:
if option[1] == 'delete':
del os.environ["GH_TOKEN"]
with patch('argparse._sys.argv', option):
try:
Expand All @@ -89,7 +88,6 @@ def test_qa_call_check_commit_message_failure(self):
pass
else:
self.fail('SystemExit or Exception not raised')
i += 1

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

0 comments on commit 5584fea

Please sign in to comment.