mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-02 18:50:17 -05:00
Remove redundant ml_ prefix from ml_workflow chapter files and update all Quarto config references. Consolidate custom scripts into native binder subcommands and archive obsolete tooling.
35 lines
795 B
Python
35 lines
795 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test runner for section_id_manager.py
|
|
Run this script to execute all tests.
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
import subprocess
|
|
|
|
def run_tests():
|
|
"""Run the test suite."""
|
|
print("🧪 Running Section ID Manager Tests...")
|
|
print("=" * 50)
|
|
|
|
# Get the directory where this script is located
|
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
# Run the tests
|
|
result = subprocess.run([
|
|
sys.executable, 'test_section_id_manager.py'
|
|
], cwd=script_dir)
|
|
|
|
print("\n" + "=" * 50)
|
|
if result.returncode == 0:
|
|
print("✅ All tests passed!")
|
|
else:
|
|
print("❌ Some tests failed!")
|
|
print("Check the output above for details.")
|
|
|
|
return result.returncode
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(run_tests())
|