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.
7 lines
625 B
7 lines
625 B
from pathlib import Path
|
|
import yaml
|
|
from src.config_loader import load_config
|
|
from src.experiment_protocol import ExperimentProtocolBuilder
|
|
def test_protocol_exports(tmp_path:Path)->None:
|
|
c=load_config("config/default.yaml",None);b=ExperimentProtocolBuilder(c.to_dict());p=b.build_default_protocol();assert p.voice_volume==c.audio.volume and p.camera_position_description==c.unified_logging.camera_position_note
|
|
md=b.export_markdown(p,tmp_path/"p.md");yp=b.export_yaml(p,tmp_path/"p.yaml");assert "voice_volume" in md.read_text(encoding="utf-8");assert yaml.safe_load(yp.read_text(encoding="utf-8"))["privacy_note"]
|
|
|