Something went wrong. Try again.
Teaching myself about embeddings as I read hands-on large language models
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829"""Run tests for one curriculum module."""
from __future__ import annotations
import argparseimport subprocessimport sysfrom glob import glob
def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("module", help="module slug, such as module_00_environment") args = parser.parse_args()
test_files = sorted(glob(f"tests/test_{args.module}_*.py")) if not test_files: raise SystemExit(f"No tests found for {args.module}")
result = subprocess.run( [sys.executable, "-m", "pytest", *test_files], check=False, ) raise SystemExit(result.returncode)
if __name__ == "__main__": main()