feat: add template-based KS-2 Excel and KS-3 Word renderers
This commit is contained in:
@@ -138,7 +138,7 @@ def test_ks2_excel_export_key_values(tmp_path):
|
||||
resp = client.get(f"/projects/{data['pid']}/ks2/{data['ks2_id']}/export/excel")
|
||||
assert resp.status_code == 200
|
||||
_, _, text = _excel_text(resp)
|
||||
assert "Акт КС-2 №7" in text
|
||||
assert "КС-2 № 7" in text
|
||||
assert "Export polish" in text
|
||||
assert "Заказчик ООО" in text
|
||||
assert "DOG-2026-7" in text
|
||||
@@ -191,7 +191,7 @@ def test_ks3_export_key_values(tmp_path):
|
||||
word = client.get(f"/projects/{data['pid']}/ks3/{data['ks3_id']}/export/word")
|
||||
assert word.status_code == 200
|
||||
_, wtext = _word_text(word)
|
||||
assert "Акт КС-3 №3" in wtext
|
||||
assert "КС-3 № 3" in wtext
|
||||
assert "500.00" in wtext
|
||||
finally:
|
||||
_clear()
|
||||
|
||||
Reference in New Issue
Block a user