Skip to content

Commit

Permalink
pep8_fixes_3
Browse files Browse the repository at this point in the history
  • Loading branch information
akshith-gunasheelan committed Sep 28, 2023
1 parent 3d71e46 commit 62d750d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions plugins/modules/oneview_uplink_set_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
'''
from ansible_collections.hpe.oneview.plugins.module_utils.oneview import OneViewModule


class UplinkSetFactsModule(OneViewModule):
def __init__(self):
argument_spec = dict(
Expand Down
2 changes: 2 additions & 0 deletions tests/sanity/ignore-2.15.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tests/unit/test_oneview_server_profile.py pylint!skip
tests/unit/utils/oneview_module_loader.py pylint!skip
8 changes: 4 additions & 4 deletions tests/unit/test_oneview.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def test_should_not_handle_value_error_exception(self):
base_mod.execute_module = mock_run
base_mod.run()
except ValueError as e:
assert(e.args[0] == MSG_GENERIC_ERROR)
assert (e.args[0] == MSG_GENERIC_ERROR)
else:
self.fail('Expected ValueError was not raised')

Expand All @@ -305,7 +305,7 @@ def test_should_not_handle_exception(self):
base_mod.execute_module = mock_run
base_mod.run()
except Exception as e:
assert(e.args[0] == MSG_GENERIC_ERROR)
assert (e.args[0] == MSG_GENERIC_ERROR)
else:
self.fail('Expected Exception was not raised')

Expand Down Expand Up @@ -920,7 +920,7 @@ def test_should_not_handle_value_error_exception(self):
base_mod.execute_module = mock_run
base_mod.run()
except ValueError as e:
assert(e.args[0] == MSG_GENERIC_ERROR)
assert (e.args[0] == MSG_GENERIC_ERROR)
else:
self.fail('Expected ValueError was not raised')

Expand All @@ -935,7 +935,7 @@ def test_should_not_handle_exception(self):
base_mod.execute_module = mock_run
base_mod.run()
except Exception as e:
assert(e.args[0] == MSG_GENERIC_ERROR)
assert (e.args[0] == MSG_GENERIC_ERROR)
else:
self.fail('Expected Exception was not raised')

Expand Down

0 comments on commit 62d750d

Please sign in to comment.