summaryrefslogtreecommitdiff
path: root/tests/unit/modules
diff options
context:
space:
mode:
authorGomathiselviS <gomathiselvi@gmail.com>2021-08-26 14:09:25 -0400
committerGitHub <noreply@github.com>2021-08-26 18:09:25 +0000
commit66c9b207fc95406b237c3b808466fc2c324a6731 (patch)
tree6e208aa9a8cccdb57a951d33d4afcfb21d885c2c /tests/unit/modules
parent01273758372bfd62c470d9edb3c177fdae87ad9f (diff)
downloadvyos.vyos-66c9b207fc95406b237c3b808466fc2c324a6731.tar.gz
vyos.vyos-66c9b207fc95406b237c3b808466fc2c324a6731.zip
Fix pylint sanity issues (#204)
Fix pylint sanity issues Signed-off-by: GomathiselviS gomathiselvi@gmail.com SUMMARY ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com> Reviewed-by: None <None>
Diffstat (limited to 'tests/unit/modules')
-rw-r--r--tests/unit/modules/network/vyos/test_vyos_interface.py2
-rw-r--r--tests/unit/modules/network/vyos/test_vyos_ping.py2
-rw-r--r--tests/unit/modules/network/vyos/test_vyos_static_route.py2
-rw-r--r--tests/unit/modules/network/vyos/test_vyos_user.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/modules/network/vyos/test_vyos_interface.py b/tests/unit/modules/network/vyos/test_vyos_interface.py
index 1194e3bd..e0e4bfc7 100644
--- a/tests/unit/modules/network/vyos/test_vyos_interface.py
+++ b/tests/unit/modules/network/vyos/test_vyos_interface.py
@@ -86,7 +86,7 @@ class TestVyosInterfaceModule(TestVyosModule):
self.mock_execute_lldp_command.stop()
self.mock_execute_interfaces_command.stop()
- def load_fixtures(self, commands=None, transport="cli"):
+ def load_fixtures(self, commands=None, transport="cli", filename=None):
self.get_config.return_value = load_fixture(
"vyos_interface_config.cfg"
)
diff --git a/tests/unit/modules/network/vyos/test_vyos_ping.py b/tests/unit/modules/network/vyos/test_vyos_ping.py
index f3ba2ee5..60407ad6 100644
--- a/tests/unit/modules/network/vyos/test_vyos_ping.py
+++ b/tests/unit/modules/network/vyos/test_vyos_ping.py
@@ -49,7 +49,7 @@ class TestVyosPingModule(TestVyosModule):
output = list()
for command in commands:
- filename = str(command).split(" | ")[0].replace(" ", "_")
+ filename = str(command).split(" | ", 1)[0].replace(" ", "_")
output.append(load_fixture("vyos_ping_%s" % filename))
return output
diff --git a/tests/unit/modules/network/vyos/test_vyos_static_route.py b/tests/unit/modules/network/vyos/test_vyos_static_route.py
index 21f11394..00985c6a 100644
--- a/tests/unit/modules/network/vyos/test_vyos_static_route.py
+++ b/tests/unit/modules/network/vyos/test_vyos_static_route.py
@@ -52,7 +52,7 @@ class TestVyosStaticRouteModule(TestVyosModule):
self.mock_get_config.stop()
self.mock_load_config.stop()
- def load_fixtures(self, commands=None, transport="cli"):
+ def load_fixtures(self, commands=None, transport="cli", filename=None):
self.get_config.return_value = ""
self.load_config.return_value = dict(diff=None, session="session")
diff --git a/tests/unit/modules/network/vyos/test_vyos_user.py b/tests/unit/modules/network/vyos/test_vyos_user.py
index d4c2dbe6..616ad095 100644
--- a/tests/unit/modules/network/vyos/test_vyos_user.py
+++ b/tests/unit/modules/network/vyos/test_vyos_user.py
@@ -50,7 +50,7 @@ class TestVyosUserModule(TestVyosModule):
self.mock_get_config.stop()
self.mock_load_config.stop()
- def load_fixtures(self, commands=None, transport="cli"):
+ def load_fixtures(self, commands=None, transport="cli", filename=None):
self.get_config.return_value = load_fixture("vyos_user_config.cfg")
self.load_config.return_value = dict(diff=None, session="session")