Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed May 15, 2024
1 parent 7a3d363 commit c2d71cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/ibridges_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def run_module():
target = locations[0]
else:
module.fail_json(msg='Unsupported sync mode "{mode}", choose either "up" or "down".'.format(mode=module.params['mode']), changed=False)

from contextlib import redirect_stdout
from io import StringIO
ibridges_stdout = StringIO()
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/plugins/modules/test_ibridges_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest
import copy

from unittest.mock import patch, Mock
from unittest.mock import patch
from ansible.module_utils import basic
from ansible.module_utils.common.text.converters import to_bytes
from plugins.modules import ibridges_sync
Expand Down Expand Up @@ -88,7 +88,7 @@ def test_sync_down(self, mocked_session, mocked_sync):

with self.assertRaises(AnsibleExitJson) as context:
ibridges_sync.main()

expectation = {
'changed': True,
'msg': '',
Expand Down Expand Up @@ -126,7 +126,7 @@ def test_sync_up(self, mocked_session, mocked_sync):

with self.assertRaises(AnsibleExitJson) as context:
ibridges_sync.main()

expectation = {
'changed': False,
'msg': '',
Expand Down Expand Up @@ -157,7 +157,7 @@ def test_sync_dry_run(self, mocked_session, mocked_sync):

with self.assertRaises(AnsibleExitJson) as context:
ibridges_sync.main()

expectation = {
'changed': False,
'msg': 'Executed iBridges dry run.',
Expand Down

0 comments on commit c2d71cb

Please sign in to comment.