|
@ -91,14 +91,15 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
cls._create_test(base, in_format, out_format), |
|
|
cls._create_test(base, in_format, out_format), |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
with cls.chdir('errors'): |
|
|
if os.path.isdir("errors"): |
|
|
for source in sorted(glob.glob('*.*.source')): |
|
|
with cls.chdir('errors'): |
|
|
[*base, in_format, _] = source.split('.') |
|
|
for source in sorted(glob.glob('*.*.source')): |
|
|
base = '.'.join(base) |
|
|
[*base, in_format, _] = source.split('.') |
|
|
yield ( |
|
|
base = '.'.join(base) |
|
|
"test_{}_{}_failure".format(base, in_format), |
|
|
yield ( |
|
|
cls._create_failure(base, in_format), |
|
|
"test_{}_{}_failure".format(base, in_format), |
|
|
) |
|
|
cls._create_failure(base, in_format), |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
@classmethod |
|
|
@classmethod |
|
|
def _create_test(cls, base, in_format, out_format): |
|
|
def _create_test(cls, base, in_format, out_format): |
|
|