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.
6 lines
594 B
6 lines
594 B
from pathlib import Path
|
|
from src.experiment_notes import ExperimentNotes
|
|
from src.models import ExperimentSessionNote
|
|
def test_note_utf8_roundtrip(tmp_path:Path)->None:
|
|
n=ExperimentSessionNote("n1",None,"e1","2026-08-09","prompt","学生","研究室","サイネージ正面",120.0,"水平","右側","左から右","昼",None,"こんにちは",.8,"config.yaml",None,None,10,None,"なし","日本語メモ")
|
|
store=ExperimentNotes();path=store.save(n,tmp_path/"note.yaml");loaded=store.load(path);assert loaded.camera_position_note=="サイネージ正面" and loaded.condition=="prompt"
|
|
|