Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
tests: Fix the tests for the consistent logging change
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Chowdhury <[email protected]>
  • Loading branch information
sayanchowdhury committed Apr 13, 2018
1 parent 15e41e5 commit 8e8f22d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setUp(self):
def tearDown(self):
self.vcr.__exit__()

@mock.patch('fedimg.consumers.LOG.debug')
@mock.patch('fedimg.consumers._log.debug')
@mock.patch('fedimg.uploader.upload')
def test_invalid_status(self, mock_upload, mock_log):
msg = {
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_invalid_status(self, mock_upload, mock_log):
self.consumer.consume(msg)
mock_log.assert_called_with('STARTED is not valid status')

@mock.patch('fedimg.consumers.LOG.debug')
@mock.patch('fedimg.consumers._log.debug')
@mock.patch('fedimg.uploader.upload')
def test_incompatible_images(self, mock_upload, mock_log):
msg = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_get_value_from_dict(self):
assert 'aarch64' in valid_return
assert invalid_return == None

@mock.patch('fedimg.utils.log.debug')
@mock.patch('fedimg.utils._log.debug')
def test_external_run_command(self, mock_log):
mock_popen = TestFedimgUtils.MockPopen()
mock_popen.communicate = mock.Mock(return_value=(
Expand Down

0 comments on commit 8e8f22d

Please sign in to comment.