From a078c307839ec6244317119231079064dcbd46cc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:10:55 +0000 Subject: [PATCH] chore: auto fixes from pre-commit.com hooks --- .../network/iosxr/rm_templates/route_maps.py | 2 +- .../network/iosxr/test_iosxr_route_maps.py | 32 +++++++++---------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/plugins/module_utils/network/iosxr/rm_templates/route_maps.py b/plugins/module_utils/network/iosxr/rm_templates/route_maps.py index f7c4bef6..886c0716 100644 --- a/plugins/module_utils/network/iosxr/rm_templates/route_maps.py +++ b/plugins/module_utils/network/iosxr/rm_templates/route_maps.py @@ -242,7 +242,7 @@ def __init__(self, lines=None, module=None): "local_preference": "{{ local_preference }}", }, }, - } + }, }, { "name": "set.aigp_metric", diff --git a/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py b/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py index de9051ac..2b5832ac 100644 --- a/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py +++ b/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py @@ -1277,27 +1277,25 @@ def test_iosxr_route_maps_parsed(self): ] self.assertEqual(parsed_list, result["parsed"]) - - def test_aayush_iosxr_route_maps_parsed(self): - set_module_args( - dict( - running_config=dedent( - """\ + set_module_args( + dict( + running_config=dedent( + """\ route-policy APPLY_TEST_ROUTE_POLICY_COMPLEX set ospf-metric 232 set local-preference 100 prepend as-path most-recent 22 """, - ), - state="parsed", ), - ) - result = self.execute_module(changed=False) - parsed_list = [ - { - "name": "APPLY_TEST_ROUTE_POLICY_COMPLEX", - "global": {"set": {"ospf_metric": 232,"local_preference":"100"}}, - }, - ] - self.assertEqual(parsed_list, result["parsed"]) + state="parsed", + ), + ) + result = self.execute_module(changed=False) + parsed_list = [ + { + "name": "APPLY_TEST_ROUTE_POLICY_COMPLEX", + "global": {"set": {"ospf_metric": 232, "local_preference": "100"}}, + }, + ] + self.assertEqual(parsed_list, result["parsed"])