|
10 | 10 | from tikara.data_types import TikaUnpackResult |
11 | 11 | from tikara.error_handling import TikaError |
12 | 12 |
|
| 13 | +# Each level of test_recursive_embedded.docx nests a further zip, so raising max_depth |
| 14 | +# must strictly widen the result. Tika <= 3.2.3 stopped after the first child of |
| 15 | +# embed1.zip and returned the same three files for every depth >= 2; the depth-3 case |
| 16 | +# below is what pins the recursion down. |
13 | 17 | UNPACK_RECURSIVE_TEST_CASES: list[tuple[str, list[str], int]] = [ |
14 | 18 | ("test_recursive_embedded_docx", ["embed1.zip", "image1.emf"], 1), |
15 | | - ("test_recursive_embedded_docx", ["embed1.zip", "image1.emf", "embed1/embed1a.txt"], 2), |
| 19 | + ( |
| 20 | + "test_recursive_embedded_docx", |
| 21 | + ["embed1.zip", "image1.emf", "embed1/embed1a.txt", "embed1/embed1b.txt", "embed1/embed2.zip"], |
| 22 | + 2, |
| 23 | + ), |
| 24 | + ( |
| 25 | + "test_recursive_embedded_docx", |
| 26 | + [ |
| 27 | + "embed1.zip", |
| 28 | + "image1.emf", |
| 29 | + "embed1/embed1a.txt", |
| 30 | + "embed1/embed1b.txt", |
| 31 | + "embed1/embed2.zip", |
| 32 | + "embed2/embed2a.txt", |
| 33 | + "embed2/embed2b.txt", |
| 34 | + "embed2/embed3.zip", |
| 35 | + ], |
| 36 | + 3, |
| 37 | + ), |
16 | 38 | ("demo_docx", ["image2.png", "image3.png", "image4.png"], 1), |
17 | 39 | ("demo_docx", ["image2.png", "image3.png", "image4.png"], 2), |
18 | 40 | ("basic_txt", [], 1), |
|
0 commit comments