test(fleet): link test_followup_fixes into tests/ with unittest adapter
This commit is contained in:
@@ -748,9 +748,26 @@ def main():
|
|||||||
for line in detail.splitlines():
|
for line in detail.splitlines():
|
||||||
print(f" {line}")
|
print(f" {line}")
|
||||||
print("-" * 80)
|
print("-" * 80)
|
||||||
print(f"{len(results)} tests: {npass} pass, {nfail} fail/error, {nskip} skip")
|
|
||||||
return 1 if nfail else 0
|
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__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
||||||
|
|||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
../bin/tests/test_followup_fixes.py
|
||||||
Reference in New Issue
Block a user