diff --git a/bin/tests/test_followup_fixes.py b/bin/tests/test_followup_fixes.py index 10a8250..dece4e0 100644 --- a/bin/tests/test_followup_fixes.py +++ b/bin/tests/test_followup_fixes.py @@ -748,9 +748,26 @@ def main(): for line in detail.splitlines(): print(f" {line}") print("-" * 80) - print(f"{len(results)} tests: {npass} pass, {nfail} fail/error, {nskip} skip") return 1 if nfail else 0 +import unittest + + +class TestFollowupFixes(unittest.TestCase): + """unittest discovery adapter for contract and wired test functions.""" + pass + + +for _name, _fn in list(globals().items()): + if _name.startswith("test_") and callable(_fn): + def _bind(f): + def _runner(self): + f() + return _runner + setattr(TestFollowupFixes, _name, _bind(_fn)) + + if __name__ == "__main__": sys.exit(main()) + diff --git a/tests/test_followup_fixes.py b/tests/test_followup_fixes.py new file mode 120000 index 0000000..197a672 --- /dev/null +++ b/tests/test_followup_fixes.py @@ -0,0 +1 @@ +../bin/tests/test_followup_fixes.py \ No newline at end of file