summaryrefslogtreecommitdiffstats
path: root/tests/isisd
diff options
context:
space:
mode:
authorwhitespace <nobody@nobody>2020-10-07 23:22:26 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-10-07 23:22:26 +0200
commit701a01920eee5431d2052aad92aefbdf50ac2139 (patch)
tree2bf2339327241f59593b9583b060ebb347db1cea /tests/isisd
parentMerge pull request #7058 from Niral-Networks/niral_dev_vrf_ospf6 (diff)
downloadfrr-701a01920eee5431d2052aad92aefbdf50ac2139.tar.xz
frr-701a01920eee5431d2052aad92aefbdf50ac2139.zip
*: reformat python files
We are now using black. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'tests/isisd')
-rw-r--r--tests/isisd/test_fuzz_isis_tlv.py18
-rw-r--r--tests/isisd/test_isis_lspdb.py4
-rw-r--r--tests/isisd/test_isis_spf.py3
-rw-r--r--tests/isisd/test_isis_vertex_queue.py4
4 files changed, 20 insertions, 9 deletions
diff --git a/tests/isisd/test_fuzz_isis_tlv.py b/tests/isisd/test_fuzz_isis_tlv.py
index d96e3c4fe..8fd20aabd 100644
--- a/tests/isisd/test_fuzz_isis_tlv.py
+++ b/tests/isisd/test_fuzz_isis_tlv.py
@@ -9,18 +9,24 @@ import socket
# on musl, ntop compresses a single :0: -> :: which is against RFC
##
def inet_ntop_broken():
- addr = '1:2:3:4:0:6:7:8'
- return socket.inet_ntop(socket.AF_INET6,
- socket.inet_pton(socket.AF_INET6, addr)) != addr
+ addr = "1:2:3:4:0:6:7:8"
+ return (
+ socket.inet_ntop(socket.AF_INET6, socket.inet_pton(socket.AF_INET6, addr))
+ != addr
+ )
-if platform.uname()[0] == 'SunOS' or inet_ntop_broken():
+if platform.uname()[0] == "SunOS" or inet_ntop_broken():
+
class TestFuzzIsisTLV:
- @pytest.mark.skipif(True, reason='Test unsupported')
+ @pytest.mark.skipif(True, reason="Test unsupported")
def test_exit_cleanly(self):
pass
+
+
else:
+
class TestFuzzIsisTLV(frrtest.TestMultiOut):
- program = './test_fuzz_isis_tlv'
+ program = "./test_fuzz_isis_tlv"
TestFuzzIsisTLV.exit_cleanly()
diff --git a/tests/isisd/test_isis_lspdb.py b/tests/isisd/test_isis_lspdb.py
index cd0b5345c..280ed1c32 100644
--- a/tests/isisd/test_isis_lspdb.py
+++ b/tests/isisd/test_isis_lspdb.py
@@ -1,6 +1,8 @@
import frrtest
+
class TestIsisLSPDB(frrtest.TestMultiOut):
- program = './test_isis_lspdb'
+ program = "./test_isis_lspdb"
+
TestIsisLSPDB.exit_cleanly()
diff --git a/tests/isisd/test_isis_spf.py b/tests/isisd/test_isis_spf.py
index 21e7ef626..f44fa70d6 100644
--- a/tests/isisd/test_isis_spf.py
+++ b/tests/isisd/test_isis_spf.py
@@ -1,4 +1,5 @@
import frrtest
+
class TestIsisSPF(frrtest.TestRefOut):
- program = './test_isis_spf'
+ program = "./test_isis_spf"
diff --git a/tests/isisd/test_isis_vertex_queue.py b/tests/isisd/test_isis_vertex_queue.py
index 5974edecc..b9d2fc5fa 100644
--- a/tests/isisd/test_isis_vertex_queue.py
+++ b/tests/isisd/test_isis_vertex_queue.py
@@ -1,6 +1,8 @@
import frrtest
+
class TestIsisVertexQueue(frrtest.TestMultiOut):
- program = './test_isis_vertex_queue'
+ program = "./test_isis_vertex_queue"
+
TestIsisVertexQueue.exit_cleanly()