Skip to content

Commit

Permalink
Fix tests not expexting to actually run on GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoRoth committed Jul 5, 2020
1 parent 0ed2fb6 commit 4f99e18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_debug(mock_wear, mock_log):
mock_log.assert_has_calls([mock.call('Testing coveralls-python...')])


@mock.patch.dict(os.environ, clear=True)
@mock.patch.object(coveralls.cli.log, 'info')
@mock.patch.object(coveralls.Coveralls, 'wear')
def test_debug_no_token(mock_wear, mock_log):
Expand Down Expand Up @@ -74,6 +75,7 @@ def test_save_report_to_file(mock_coveralls):
mock_coveralls.assert_called_with('test.log')


@mock.patch.dict(os.environ, clear=True)
@mock.patch.object(coveralls.Coveralls, 'save_report')
def test_save_report_to_file_no_token(mock_coveralls):
"""Check save_report api usage when token is not set."""
Expand Down

0 comments on commit 4f99e18

Please sign in to comment.