test(fleet): link test_followup_fixes into tests/ with unittest adapter

This commit is contained in:
operator
2026-10-07 01:49:56 +00:00
parent a09337ec48
commit f2527f183c
2 changed files with 19 additions and 1 deletions
+18 -1
View File
@@ -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())