Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 20:45 UTC
test(review): disallow whitespace or overlong company scope aliases
davoodmehraban89 committed
Oct 31, 2026 at 00:27 UTC
080d3d062d7e95e97cc65d55b7632c190249b3d4
1 file changed
+8
backend/tests/test_reconciliation_review_cli.py
+8
@@ -141,3 +141,11 @@ def test_no_snapshot_written_or_input_edited_on_mismatch(tmp_path, capsys):
141
]
142
assert xlsx.read_bytes() == source_bytes
143
assert json.loads(controls.read_text()) == manifest(expected="-100.00")
144
+
145
+
146
+@pytest.mark.parametrize("company", [" 001", "001 ", "001\\t", "x" * 65])
147
+def test_company_scope_is_never_silently_normalized(company):
148
+ payload = manifest(company=company)
149
+ with pytest.raises(CoverageError) as error:
150
+ parse_manifest(json.dumps(payload).encode("utf-8"))
151
+ assert error.value.code == "INVALID_MANIFEST_COMPANY"