]> git.ipfire.org Git - location/libloc.git/commitdiff
tests: Show even large diffs in dedup tests
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Feb 2024 16:20:44 +0000 (16:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Feb 2024 16:20:44 +0000 (16:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/python/networks-dedup.py

index abceaae9a6910161f9d914dc9f1c6754362db31c..190b367742060784d69f463a7e91ee983fb9e44b 100644 (file)
@@ -23,6 +23,10 @@ import tempfile
 import unittest
 
 class Test(unittest.TestCase):
+       def setUp(self):
+               # Show even very large diffs
+               self.maxDiff = None
+
        def __test(self, inputs, outputs):
                """
                        Takes a list of networks that are written to the database and
@@ -73,8 +77,6 @@ class Test(unittest.TestCase):
                """
                        Nothing should be changed here
                """
-               self.maxDiff = None
-
                networks = (
                        ("10.0.0.0/8", None, None),
                        ("20.0.0.0/8", None, None),