Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte committed Mar 8, 2024
1 parent 43b848d commit 37322e1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/unit/modules/network/ios/test_ios_bgp_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

from ansible_collections.cisco.ios.plugins.modules import ios_bgp_global
from ansible_collections.cisco.ios.tests.unit.compat.mock import patch
from ansible_collections.cisco.ios.tests.unit.modules.utils import AnsibleFailJson, set_module_args
from ansible_collections.cisco.ios.tests.unit.modules.utils import (
AnsibleFailJson,
set_module_args,
)

from .ios_module import TestIosModule

Expand All @@ -27,7 +30,9 @@ def setUp(self):
"ansible_collections.ansible.netcommon.plugins.module_utils.network.common.rm_base.resource_module_base."
"get_resource_connection",
)
self.get_resource_connection_facts = self.mock_get_resource_connection_facts.start()
self.get_resource_connection_facts = (
self.mock_get_resource_connection_facts.start()
)

self.mock_execute_show_command = patch(
"ansible_collections.cisco.ios.plugins.module_utils.network.ios.facts.bgp_global.bgp_global."
Expand Down Expand Up @@ -926,7 +931,6 @@ def test_ios_bgp_global_action_states_specific_default(self):
"no neighbor 192.0.2.2 shutdown",
]
result = self.execute_module(changed=True)
print(result["commands"])
self.assertEqual(sorted(result["commands"]), sorted(commands))

def test_ios_bgp_global_action_states_no_default(self):
Expand Down Expand Up @@ -999,5 +1003,4 @@ def test_ios_bgp_global_action_states_no_default(self):
)
commands = ["router bgp 6500", "no neighbor 192.0.2.2 shutdown"]
result = self.execute_module(changed=True)
print(result["commands"])
self.assertEqual(sorted(result["commands"]), sorted(commands))

0 comments on commit 37322e1

Please sign in to comment.