arm-tabular-parser/api/tests/synthetic/test_generate_statements.py
Andrey Epifancev d64ba71098 test(statements): синтетика st01…st05 и сценарии спеки на ней; параметры statement_file
Refs #14
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Claude-Session: cedd7915-2efe-41e5-988c-a9117033598b
2026-10-06 18:33:58 +04:00

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)