Skip to content

Commit 958f012

Browse files
committed
[ci] Remove unused imports
1 parent e42aa42 commit 958f012

12 files changed

+7
-35
lines changed

examples/ipsec/filter_plugins/pfsense.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
__metaclass__ = type
88

99
from ansible.errors import AnsibleFilterError
10-
from ipaddress import ip_network
11-
import re
12-
13-
try:
14-
from __main__ import display
15-
except ImportError:
16-
from ansible.utils.display import Display
17-
display = Display()
1810

1911

2012
def format_ipsec_aggregate_ipsecs(all_tunnels, pfname):

tests/unit/plugins/lookup/test_pfsense.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from __future__ import (absolute_import, division, print_function)
55
__metaclass__ = type
66

7-
import os
87
from collections import OrderedDict
98
import yaml
109
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import patch
@@ -43,7 +42,6 @@ def setUp(self):
4342

4443
self.build_definitions()
4544

46-
# self.fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures', 'pfsense.yaml')
4745
self.mock_get_hostname = patch('ansible_collections.pfsensible.core.plugins.lookup.pfsense.LookupModule.get_hostname')
4846
get_hostname = self.mock_get_hostname.start()
4947
get_hostname.return_value = ('pf_test1')

tests/unit/plugins/modules/test_pfsense_alias_null.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from __future__ import (absolute_import, division, print_function)
55
__metaclass__ = type
66

7-
from copy import copy
87
import pytest
98
import sys
109

tests/unit/plugins/modules/test_pfsense_authserver_ldap.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
if sys.version_info < (2, 7):
1111
pytestmark = pytest.mark.skip("pfSense Ansible modules require Python >= 2.7")
1212

13-
from xml.etree.ElementTree import fromstring, ElementTree
14-
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import patch
1513
from ansible_collections.pfsensible.core.plugins.modules import pfsense_authserver_ldap
16-
from .pfsense_module import TestPFSenseModule, load_fixture
14+
from .pfsense_module import TestPFSenseModule
1715

1816

1917
class TestPFSenseAuthserverLDAPModule(TestPFSenseModule):

tests/unit/plugins/modules/test_pfsense_authserver_radius.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
if sys.version_info < (2, 7):
1111
pytestmark = pytest.mark.skip("pfSense Ansible modules require Python >= 2.7")
1212

13-
from xml.etree.ElementTree import fromstring, ElementTree
14-
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import patch
1513
from ansible_collections.pfsensible.core.plugins.modules import pfsense_authserver_radius
16-
from .pfsense_module import TestPFSenseModule, load_fixture
14+
from .pfsense_module import TestPFSenseModule
1715

1816

1917
class TestPFSenseAuthserverRADIUSModule(TestPFSenseModule):

tests/unit/plugins/modules/test_pfsense_ca.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
if sys.version_info < (2, 7):
1111
pytestmark = pytest.mark.skip("pfSense Ansible modules require Python >= 2.7")
1212

13-
from xml.etree.ElementTree import fromstring, ElementTree
14-
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import patch
1513
from ansible_collections.pfsensible.core.plugins.modules import pfsense_ca
16-
from .pfsense_module import TestPFSenseModule, load_fixture
14+
from .pfsense_module import TestPFSenseModule
1715

1816
CERTIFICATE = (
1917
"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlFQ0RDQ0F2Q2dBd0lCQWdJSUZqRk9oczFuTXpRd0RRWUpLb1pJaHZjTkFRRUxCUUF3WERFVE1CRUdBMVVFDQpBeE1LYjNCbGJuWndiaTFqWVRF"

tests/unit/plugins/modules/test_pfsense_ipsec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from ansible_collections.pfsensible.core.plugins.modules import pfsense_ipsec
1414
from ansible_collections.pfsensible.core.plugins.module_utils.ipsec import PFSenseIpsecModule
1515
from .pfsense_module import TestPFSenseModule
16-
from parameterized import parameterized
1716

1817

1918
class TestPFSenseIpsecModule(TestPFSenseModule):

tests/unit/plugins/modules/test_pfsense_log_settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
from __future__ import (absolute_import, division, print_function)
55
__metaclass__ = type
66

7-
from copy import copy
87
import pytest
98
import sys
109

1110
if sys.version_info < (2, 7):
1211
pytestmark = pytest.mark.skip("pfSense Ansible modules require Python >= 2.7")
1312

14-
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import set_module_args
1513
from ansible_collections.pfsensible.core.plugins.modules import pfsense_log_settings
1614

1715
from .pfsense_module import TestPFSenseModule

tests/unit/plugins/modules/test_pfsense_openvpn_override.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
if sys.version_info < (2, 7):
1111
pytestmark = pytest.mark.skip("pfSense Ansible modules require Python >= 2.7")
1212

13-
from xml.etree.ElementTree import fromstring, ElementTree
14-
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import patch
1513
from ansible_collections.pfsensible.core.plugins.modules import pfsense_openvpn_override
16-
from .pfsense_module import TestPFSenseModule, load_fixture
14+
from .pfsense_module import TestPFSenseModule
1715

1816

1917
class TestPFSenseOpenVPNOverrideModule(TestPFSenseModule):

tests/unit/plugins/modules/test_pfsense_openvpn_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
if sys.version_info < (2, 7):
1111
pytestmark = pytest.mark.skip("pfSense Ansible modules require Python >= 2.7")
1212

13-
from xml.etree.ElementTree import fromstring, ElementTree
14-
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import patch
1513
from ansible_collections.pfsensible.core.plugins.modules import pfsense_openvpn_server
16-
from .pfsense_module import TestPFSenseModule, load_fixture
14+
from .pfsense_module import TestPFSenseModule
1715

1816
CERTIFICATE = (
1917
"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlFQ0RDQ0F2Q2dBd0lCQWdJSUZqRk9oczFuTXpRd0RRWUpLb1pJaHZjTkFRRUxCUUF3WERFVE1CRUdBMVVFDQpBeE1LYjNCbGJuWndiaTFqWVRF"

0 commit comments

Comments
 (0)