Skip to content

Commit 8a80f3a

Browse files
committed
Fix broken vectorstore tests for pdfs
1 parent ee128f8 commit 8a80f3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/mlmodel_langchain/test_vectorstore.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ def vectorstore_events_sans_content(event):
8181
"id": None, # UUID that changes with each run
8282
"vendor": "langchain",
8383
"ingest_source": "Python",
84-
"metadata.source": os.path.join(os.path.dirname(__file__), "hello.pdf"),
85-
"metadata.page": 0,
84+
"metadata.creationdate": "2023-02-10T00:49:47+00:00",
85+
"metadata.creator": "XeTeX output 2023.02.10:0049",
8686
"metadata.page_label": "1",
87+
"metadata.page": 0,
88+
"metadata.producer": "xdvipdfmx (20210318)",
89+
"metadata.source": os.path.join(os.path.dirname(__file__), "hello.pdf"),
90+
"metadata.total_pages": 1,
8791
},
8892
),
8993
]

0 commit comments

Comments
 (0)