mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-19 11:58:34 +03:00
test/test_files: set maxDiff attribute
Without this the diff between expected and actual output is truncated and one instead reads the following output: Diff is 844 characters long. Set self.maxDiff to None to see it. We actually want to see the full diff to see what's not matching. Change-Id: I6e89705061454191b6db1255de7fe549ad720800
This commit is contained in:
@@ -37,6 +37,7 @@ def get_qualified_name(c):
|
||||
|
||||
class LinFixed_Test(unittest.TestCase):
|
||||
classes = all_subclasses(LinFixedEF)
|
||||
maxDiff = None
|
||||
|
||||
def test_decode_record(self):
|
||||
"""Test the decoder for a linear-fixed EF. Requires the given LinFixedEF subclass
|
||||
@@ -124,6 +125,7 @@ class LinFixed_Test(unittest.TestCase):
|
||||
|
||||
class TransRecEF_Test(unittest.TestCase):
|
||||
classes = all_subclasses(TransRecEF)
|
||||
maxDiff = None
|
||||
|
||||
def test_decode_record(self):
|
||||
"""Test the decoder for a transparent record-oriented EF. Requires the given TransRecEF subclass
|
||||
@@ -186,6 +188,8 @@ class TransRecEF_Test(unittest.TestCase):
|
||||
|
||||
|
||||
class TransparentEF_Test(unittest.TestCase):
|
||||
maxDiff = None
|
||||
|
||||
@classmethod
|
||||
def get_classes(cls):
|
||||
"""get list of TransparentEF sub-classes which are not a TransRecEF subclass."""
|
||||
|
||||
Reference in New Issue
Block a user