Refs #14 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: cedd7915-2efe-41e5-988c-a9117033598b
19 lines
588 B
Python
19 lines
588 B
Python
from pathlib import Path
|
|
|
|
from tests.synthetic.generate_statements import FILE_NAMES, generate_all
|
|
|
|
EXPECTED = (
|
|
"st01_both_forms_one_sheet.xlsx",
|
|
"st02_csv_like.xlsx",
|
|
"st03_no_codes.xlsx",
|
|
"st04_mixed_book.xlsx",
|
|
"st05_continuation_only.xlsx",
|
|
)
|
|
|
|
|
|
def test_names_and_determinism(tmp_path: Path) -> None:
|
|
assert FILE_NAMES == EXPECTED
|
|
first = {path.name: path.read_bytes() for path in generate_all(tmp_path / "a")}
|
|
second = {path.name: path.read_bytes() for path in generate_all(tmp_path / "b")}
|
|
assert first == second and set(first) == set(EXPECTED)
|