mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
refactor: remove redundant status assertion
This commit is contained in:
parent
e1ac8bfc76
commit
a7df26d451
1 changed files with 0 additions and 2 deletions
|
|
@ -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"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue