add exported extractor results

This commit is contained in:
Mike Fährmann
2023-09-10 14:45:01 +02:00
parent b611bf9629
commit a833c244c8
250 changed files with 18610 additions and 2 deletions

32
test/results/__init__.py Normal file
View File

@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import sys
import functools
__directory__ = os.path.dirname(__file__)
@functools.lru_cache(maxsize=None)
def tests(name):
try:
module = __import__(name, globals(), None, (), 1)
return module.__tests__
except Exception as exc:
print(exc)
return ()
def all():
ignore = ("__init__.py", "__pycache__")
for filename in os.listdir(__directory__):
if filename not in ignore:
yield from tests(filename[:-3])
def category(category):
return tests(category.replace(".", ""))