refactor: remove redundant status assertion

This commit is contained in:
Anish Sarkar 2026-02-25 20:07:34 +05:30
parent e1ac8bfc76
commit a7df26d451

View file

@ -42,8 +42,6 @@ def _assert_document_ready(doc: dict, *, expected_filename: str) -> None:
assert doc["content_hash"], "content_hash should be set"
assert doc["document_metadata"].get("FILE_NAME") == expected_filename
assert doc["document_metadata"].get("ETL_SERVICE"), "ETL_SERVICE should be set"
if doc.get("status"):
assert doc["status"]["state"] == "ready"
# ---------------------------------------------------------------------------