Commit f732df1
committed
test(indexer): isolate TestIndexLongDocument from a configured PAGEINDEX_API_KEY
These tests drive the LOCAL indexing path with a fake PDF. When a developer has
PAGEINDEX_API_KEY set, index_long_document takes the cloud branch and
_get_pdf_page_count tries to open the fake PDF and raises (FileDataError). Add a
class-scoped autouse fixture that unsets the key by default; the cloud-path tests
in the class re-enable it via monkeypatch.setenv.1 parent 0b93eae commit f732df1
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
0 commit comments