Skip to content

Commit

Permalink
fix sonarcube warning
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence committed Feb 24, 2025
1 parent e132940 commit 0908c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cnaas_nms/db/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def test_routing_policy(self):
}
]
with self.assertRaises(ValueError, msg="Undefined route map routemap1 should raise error"):
check_bgp_neighbor_routemaps(test_device_name, test_vrfs, {})
check_bgp_neighbor_routemaps(test_device_name, test_vrfs, set())
check_bgp_neighbor_routemaps(test_device_name, test_vrfs, {"routemap1", "routemap2"})
with self.assertRaises(KeyError):
check_bgp_neighbor_routemaps(test_device_name, [{"name": "emptyvrf"}], {})
check_bgp_neighbor_routemaps(test_device_name, [{"name": "emptyvrf"}], set())

def test_groups_priorities_sorted(self):
group_settings_dict = {
Expand Down

0 comments on commit 0908c6a

Please sign in to comment.