diff options
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> | 2023-02-08 08:16:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 08:16:23 -0500 |
commit | 5dc5a62c8479222b9fd3c09cd482177f863fa837 (patch) | |
tree | 15d8d6240043fb4d276c5921765753167a0d2dbb /tests | |
parent | dac4b610c8a0dd67fad408649d855b8384017ddd (diff) | |
download | vyos.vyos-5dc5a62c8479222b9fd3c09cd482177f863fa837.tar.gz vyos.vyos-5dc5a62c8479222b9fd3c09cd482177f863fa837.zip |
[pre-commit.ci] pre-commit autoupdate (#291)
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'tests')
24 files changed, 0 insertions, 27 deletions
diff --git a/tests/unit/compat/mock.py b/tests/unit/compat/mock.py index 4bef4c2..2c62c9e 100644 --- a/tests/unit/compat/mock.py +++ b/tests/unit/compat/mock.py @@ -102,7 +102,6 @@ if sys.version_info >= (3,) and sys.version_info < (3, 4, 4): global file_spec if file_spec is None: - file_spec = list(set(dir(_io.TextIOWrapper)).union(set(dir(_io.BytesIO)))) if mock is None: diff --git a/tests/unit/modules/network/vyos/test_vyos_banner.py b/tests/unit/modules/network/vyos/test_vyos_banner.py index 08d4424..1d6738c 100644 --- a/tests/unit/modules/network/vyos/test_vyos_banner.py +++ b/tests/unit/modules/network/vyos/test_vyos_banner.py @@ -26,7 +26,6 @@ from .vyos_module import TestVyosModule class TestVyosBannerModule(TestVyosModule): - module = vyos_banner def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_bgp_address_family.py b/tests/unit/modules/network/vyos/test_vyos_bgp_address_family.py index a9f0ef1..0bbf74a 100644 --- a/tests/unit/modules/network/vyos/test_vyos_bgp_address_family.py +++ b/tests/unit/modules/network/vyos/test_vyos_bgp_address_family.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosBgpafModule(TestVyosModule): - module = vyos_bgp_address_family def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_bgp_global.py b/tests/unit/modules/network/vyos/test_vyos_bgp_global.py index 23f2e6a..d0167de 100644 --- a/tests/unit/modules/network/vyos/test_vyos_bgp_global.py +++ b/tests/unit/modules/network/vyos/test_vyos_bgp_global.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosBgpglobalModule(TestVyosModule): - module = vyos_bgp_global def setUp(self): @@ -432,7 +431,6 @@ class TestVyosBgpglobalModule(TestVyosModule): ) def test_vyos_bgp_global_parsed(self): - commands = [ "set protocols bgp 65536 neighbor 10.0.0.4 disable-connected-check", "set protocols bgp 65536 neighbor 10.0.0.4 timers holdtime 30", diff --git a/tests/unit/modules/network/vyos/test_vyos_command.py b/tests/unit/modules/network/vyos/test_vyos_command.py index e03ea7d..5479bbb 100644 --- a/tests/unit/modules/network/vyos/test_vyos_command.py +++ b/tests/unit/modules/network/vyos/test_vyos_command.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosCommandModule(TestVyosModule): - module = vyos_command def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_config.py b/tests/unit/modules/network/vyos/test_vyos_config.py index def567a..ca949c6 100644 --- a/tests/unit/modules/network/vyos/test_vyos_config.py +++ b/tests/unit/modules/network/vyos/test_vyos_config.py @@ -30,7 +30,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosConfigModule(TestVyosModule): - module = vyos_config def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_firewall_global.py b/tests/unit/modules/network/vyos/test_vyos_firewall_global.py index 367da22..8164768 100644 --- a/tests/unit/modules/network/vyos/test_vyos_firewall_global.py +++ b/tests/unit/modules/network/vyos/test_vyos_firewall_global.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosFirewallRulesModule(TestVyosModule): - module = vyos_firewall_global def setUp(self): 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 fe64659..acb9894 100644 --- a/tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py +++ b/tests/unit/modules/network/vyos/test_vyos_firewall_interfaces.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosFirewallInterfacesModule(TestVyosModule): - module = vyos_firewall_interfaces def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_firewall_rules.py b/tests/unit/modules/network/vyos/test_vyos_firewall_rules.py index 623ab1e..7952b47 100644 --- a/tests/unit/modules/network/vyos/test_vyos_firewall_rules.py +++ b/tests/unit/modules/network/vyos/test_vyos_firewall_rules.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosFirewallRulesModule(TestVyosModule): - module = vyos_firewall_rules def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_hostname.py b/tests/unit/modules/network/vyos/test_vyos_hostname.py index 13d4e32..3df9a17 100644 --- a/tests/unit/modules/network/vyos/test_vyos_hostname.py +++ b/tests/unit/modules/network/vyos/test_vyos_hostname.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosHostnameModule(TestVyosModule): - module = vyos_hostname def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_interfaces.py b/tests/unit/modules/network/vyos/test_vyos_interfaces.py index 1595040..ea6dbf5 100644 --- a/tests/unit/modules/network/vyos/test_vyos_interfaces.py +++ b/tests/unit/modules/network/vyos/test_vyos_interfaces.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosFirewallInterfacesModule(TestVyosModule): - module = vyos_interfaces def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_logging_global.py b/tests/unit/modules/network/vyos/test_vyos_logging_global.py index 12da571..f1ab00d 100644 --- a/tests/unit/modules/network/vyos/test_vyos_logging_global.py +++ b/tests/unit/modules/network/vyos/test_vyos_logging_global.py @@ -17,7 +17,6 @@ from .vyos_module import TestVyosModule class TestVyosLoggingGlobalModule(TestVyosModule): - module = vyos_logging_global def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_ntp_global.py b/tests/unit/modules/network/vyos/test_vyos_ntp_global.py index 0a6119b..5da1056 100644 --- a/tests/unit/modules/network/vyos/test_vyos_ntp_global.py +++ b/tests/unit/modules/network/vyos/test_vyos_ntp_global.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosNTPModule(TestVyosModule): - module = vyos_ntp_global def setUp(self): @@ -274,7 +273,6 @@ class TestVyosNTPModule(TestVyosModule): ) def test_ntp_parsed(self): - commands = ( "set system ntp allow-clients address 10.7.7.0/24", "set system ntp allow-clients address 10.6.7.0/24", diff --git a/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py b/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py index e8c3241..74eaf7c 100644 --- a/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py +++ b/tests/unit/modules/network/vyos/test_vyos_ospf_interfaces.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosOspfInterfacesModule(TestVyosModule): - module = vyos_ospf_interfaces def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_ospfv2.py b/tests/unit/modules/network/vyos/test_vyos_ospfv2.py index e036f68..84b882d 100644 --- a/tests/unit/modules/network/vyos/test_vyos_ospfv2.py +++ b/tests/unit/modules/network/vyos/test_vyos_ospfv2.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosOspfv2Module(TestVyosModule): - module = vyos_ospfv2 def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_ospfv3.py b/tests/unit/modules/network/vyos/test_vyos_ospfv3.py index d04b7f7..2231c0b 100644 --- a/tests/unit/modules/network/vyos/test_vyos_ospfv3.py +++ b/tests/unit/modules/network/vyos/test_vyos_ospfv3.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosOspfv3Module(TestVyosModule): - module = vyos_ospfv3 def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_ping.py b/tests/unit/modules/network/vyos/test_vyos_ping.py index ea8d259..612e50c 100644 --- a/tests/unit/modules/network/vyos/test_vyos_ping.py +++ b/tests/unit/modules/network/vyos/test_vyos_ping.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosPingModule(TestVyosModule): - module = vyos_ping def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_prefix_lists.py b/tests/unit/modules/network/vyos/test_vyos_prefix_lists.py index e8d044d..dafba2a 100644 --- a/tests/unit/modules/network/vyos/test_vyos_prefix_lists.py +++ b/tests/unit/modules/network/vyos/test_vyos_prefix_lists.py @@ -30,7 +30,6 @@ from .vyos_module import TestVyosModule class TestVyosPrefixListsModule(TestVyosModule): - # Testing strategy # ------------------ # (a) The unit tests cover `merged` and `replaced` for every attribute. diff --git a/tests/unit/modules/network/vyos/test_vyos_route_maps.py b/tests/unit/modules/network/vyos/test_vyos_route_maps.py index 6b50ad5..9d3c71a 100644 --- a/tests/unit/modules/network/vyos/test_vyos_route_maps.py +++ b/tests/unit/modules/network/vyos/test_vyos_route_maps.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosRouteMapsModule(TestVyosModule): - module = vyos_route_maps def setUp(self): @@ -460,7 +459,6 @@ class TestVyosRouteMapsModule(TestVyosModule): ) def test_yos_route_maps_parsed(self): - parsed_str = ( "set policy route-map test3 rule 1 action 'permit'" "\nset policy route-map test3 rule 1 match interface 'eth2'\nset policy route-map test3 rule 1 match ipv6 nexthop" diff --git a/tests/unit/modules/network/vyos/test_vyos_snmp_server.py b/tests/unit/modules/network/vyos/test_vyos_snmp_server.py index 60a0746..73e29f6 100644 --- a/tests/unit/modules/network/vyos/test_vyos_snmp_server.py +++ b/tests/unit/modules/network/vyos/test_vyos_snmp_server.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosSnmpServerModule(TestVyosModule): - module = vyos_snmp_server def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_static_routes.py b/tests/unit/modules/network/vyos/test_vyos_static_routes.py index df25992..3479009 100644 --- a/tests/unit/modules/network/vyos/test_vyos_static_routes.py +++ b/tests/unit/modules/network/vyos/test_vyos_static_routes.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosStaticRoutesModule(TestVyosModule): - module = vyos_static_routes def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_system.py b/tests/unit/modules/network/vyos/test_vyos_system.py index 3665720..03ef3df 100644 --- a/tests/unit/modules/network/vyos/test_vyos_system.py +++ b/tests/unit/modules/network/vyos/test_vyos_system.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosSystemModule(TestVyosModule): - module = vyos_system def setUp(self): diff --git a/tests/unit/modules/network/vyos/test_vyos_user.py b/tests/unit/modules/network/vyos/test_vyos_user.py index 5a1f69f..57639d1 100644 --- a/tests/unit/modules/network/vyos/test_vyos_user.py +++ b/tests/unit/modules/network/vyos/test_vyos_user.py @@ -28,7 +28,6 @@ from .vyos_module import TestVyosModule, load_fixture class TestVyosUserModule(TestVyosModule): - module = vyos_user def setUp(self): diff --git a/tests/unit/modules/network/vyos/vyos_module.py b/tests/unit/modules/network/vyos/vyos_module.py index 98a422d..b1bdc2e 100644 --- a/tests/unit/modules/network/vyos/vyos_module.py +++ b/tests/unit/modules/network/vyos/vyos_module.py @@ -61,7 +61,6 @@ class TestVyosModule(ModuleTestCase): defaults=False, filename=None, ): - if filename is None: self.load_fixtures(commands) else: |