We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def7aa8 commit 31a5265Copy full SHA for 31a5265
backend/tests/unit/onyx/indexing/test_postgres_sanitization.py
@@ -1,3 +1,5 @@
1
+from pytest import MonkeyPatch
2
+
3
from onyx.access.models import ExternalAccess
4
from onyx.connectors.models import BasicExpertInfo
5
from onyx.connectors.models import Document
@@ -87,7 +89,9 @@ def test_sanitize_hierarchy_node_for_postgres_removes_nul_bytes() -> None:
87
89
assert sanitized.external_access.external_user_group_ids == {"g-1"}
88
90
91
-def test_index_doc_batch_prepare_sanitizes_before_db_ops(monkeypatch: object) -> None:
92
+def test_index_doc_batch_prepare_sanitizes_before_db_ops(
93
+ monkeypatch: MonkeyPatch,
94
+) -> None:
95
document = Document(
96
id="doc\x00id",
97
source=DocumentSource.FILE,
0 commit comments