From 5bd456548bc5f6ac623463319e3a7d97840f16e8 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 2 Mar 2020 13:37:37 -0500 Subject: Fix flake8 errors from last sync from ansible/ansible Since ansible/ansible is now frozen, we can prepare to open development on our collections. Signed-off-by: Paul Belanger --- .../vyos/config/firewall_interfaces/firewall_interfaces.py | 1 - tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/module_utils/network/vyos/config/firewall_interfaces/firewall_interfaces.py b/plugins/module_utils/network/vyos/config/firewall_interfaces/firewall_interfaces.py index b436bfad..bd2fbab5 100644 --- a/plugins/module_utils/network/vyos/config/firewall_interfaces/firewall_interfaces.py +++ b/plugins/module_utils/network/vyos/config/firewall_interfaces/firewall_interfaces.py @@ -20,7 +20,6 @@ from ansible_collections.ansible.netcommon.plugins.module_utils.network.common.c ) from ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils import ( to_list, - dict_diff, remove_empties, search_obj_in_list, ) diff --git a/tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py b/tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py index 1ffeae46..92d2a4f3 100644 --- a/tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py +++ b/tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py @@ -20,10 +20,7 @@ from __future__ import absolute_import, division, print_function __metaclass__ = type -from ansible_collections.vyos.vyos.tests.unit.compat.mock import ( - patch, - MagicMock, -) +from ansible_collections.vyos.vyos.tests.unit.compat.mock import patch from ansible_collections.vyos.vyos.plugins.modules import ( vyos_firewall_interfaces, ) @@ -64,7 +61,8 @@ class TestVyosFirewallInterfacesModule(TestVyosModule): ) self.mock_execute_show_command = patch( - "ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.facts.firewall_interfaces.firewall_interfaces.Firewall_interfacesFacts.get_device_data" + "ansible_collections.vyos.vyos.plugins.module_utils.network.vyos." + "facts.firewall_interfaces.firewall_interfaces.Firewall_interfacesFacts.get_device_data" ) self.execute_show_command = self.mock_execute_show_command.start() -- cgit v1.2.3