diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-27 23:19:32 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-27 23:19:32 +0300 | 
| commit | 1a1c2a9f84d0ad1bdadc0cb47d6175d4ccc32544 (patch) | |
| tree | 12cf52e17d2b48a7090f9b6ffa06acc7fe49fbd7 /tests/topotests/nb_config | |
| parent | 086df4bfaabdeafdc6643f94f68d17b3e069187a (diff) | |
tests: Apply black formatting for all tests/topotests
It's just annoying when the linter tells to apply the formatting for the code
you didn't touch.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/nb_config')
| -rw-r--r-- | tests/topotests/nb_config/test_nb_config.py | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/topotests/nb_config/test_nb_config.py b/tests/topotests/nb_config/test_nb_config.py index f699a4e20e..8def19ffd5 100644 --- a/tests/topotests/nb_config/test_nb_config.py +++ b/tests/topotests/nb_config/test_nb_config.py @@ -24,9 +24,7 @@ CWD = os.path.dirname(os.path.realpath(__file__))  def tgen(request):      "Setup/Teardown the environment and provide tgen argument to tests" -    topodef = { -        "s1": ("r1",) -    } +    topodef = {"s1": ("r1",)}      tgen = Topogen(topodef, request.module.__name__)      tgen.start_topology() @@ -46,12 +44,14 @@ def test_access_list_config_ordering(tgen):      r1 = tgen.gears["r1"] -    output = r1.vtysh_multicmd([ -        "conf t", -        "access-list test seq 1 permit host 10.0.0.1"]) +    output = r1.vtysh_multicmd( +        ["conf t", "access-list test seq 1 permit host 10.0.0.1"] +    )      output = r1.vtysh_cmd("show ip access-list test json")      got = json.loads(output) -    expected = json.loads('{"ZEBRA":{"test":{"type":"Standard", "addressFamily":"IPv4", "rules":[{"sequenceNumber":1, "filterType":"permit", "address":"10.0.0.1", "mask":"0.0.0.0"}]}}}') +    expected = json.loads( +        '{"ZEBRA":{"test":{"type":"Standard", "addressFamily":"IPv4", "rules":[{"sequenceNumber":1, "filterType":"permit", "address":"10.0.0.1", "mask":"0.0.0.0"}]}}}' +    )      result = json_cmp(got, expected)      assert result is None @@ -59,11 +59,11 @@ def test_access_list_config_ordering(tgen):      # If the northbound mis-orders the create/delete then this test fails.      # https://github.com/FRRouting/frr/pull/15423/commits/38b85e0c2bc555b8827dbd2cb6515b6febf548b4      # -    output = r1.vtysh_multicmd([ -        "conf t", -        "access-list test seq 1 permit 10.0.0.0/8"]) +    output = r1.vtysh_multicmd(["conf t", "access-list test seq 1 permit 10.0.0.0/8"])      output = r1.vtysh_cmd("show ip access-list test json")      got = json.loads(output) -    expected = json.loads('{"ZEBRA":{"test":{"type":"Zebra", "addressFamily":"IPv4", "rules":[{"sequenceNumber":1, "filterType":"permit", "prefix":"10.0.0.0/8", "exact-match":false}]}}}') +    expected = json.loads( +        '{"ZEBRA":{"test":{"type":"Zebra", "addressFamily":"IPv4", "rules":[{"sequenceNumber":1, "filterType":"permit", "prefix":"10.0.0.0/8", "exact-match":false}]}}}' +    )      result = json_cmp(got, expected)      assert result is None  | 
