You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

9 lines
646 B

from pathlib import Path
from main import build_phase11_parser
from src.config_loader import load_config
from src.phase11_cli import run_diagnostics
def test_phase11_parsers()->None:
assert build_phase11_parser("pilot-diagnostics").parse_args([]).output==Path("data/analysis")
assert build_phase11_parser("calibration-add").parse_args(["--category","camera_position","--before","a","--after","b","--reason","r"]).category=="camera_position"
def test_diagnostics_runner_is_camera_free(tmp_path:Path)->None:
outputs=run_diagnostics(load_config("config/default.yaml",None),tmp_path,tmp_path/"logs",tmp_path/"out");assert len(outputs)==4