Commit fb9a6d0
committed
test(converter): guard that importing converter stays markitdown-free
Adds a regression test that spawns a fresh interpreter and asserts
`import openkb.converter` loads none of markitdown / magika / onnxruntime.
This locks in the lazy-import optimization: if a future change reintroduces a
module-level markitdown import, startup cost and the slim-packaging benefit
regress silently while every functional test still passes. The check runs in a
subprocess so it is deterministic regardless of what earlier tests imported
into this process's sys.modules.
Claude-Session: https://claude.ai/code/session_01KZyUSGAzVL9yxpsWWPv6Y21 parent 53740cb commit fb9a6d0
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
167 | 199 | | |
168 | 200 | | |
169 | 201 | | |
| |||
0 commit comments