Commit ad9c94d
[PLT-0] Fix test expectations for updated test assets
Follow-up to the test-asset repath (#2055). The new hosted assets differ
from the deleted originals, so several tests need their fixtures/expected
values realigned:
- image_url: point at a stable, byte-stable JPEG (potato.jpeg) instead of
picsum.photos, which returns a random image per request and broke every
byte-equality assertion in test_data_rows.py. This also restores
test_multiple_chunks (the shorter picsum URL under-filled the mocked
300-byte upsert chunks, yielding 7 upload calls instead of 11).
- Same picsum -> stable JPEG swap in the alignerr conftest (latent; no
byte-equality asserts there, but removes the third-party dependency).
- Text TextEntity token updated to match sample-text.txt at offsets 112-128.
- Document entity token IDs/groupId/text and page width (594) updated to
match sample-pdf-textlayer.json / test-pdf.pdf.
- Video frame_rate/frame_count updated to test_video_500kb.mp4 (25 fps, 627).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 07d76aa commit ad9c94d
4 files changed
Lines changed: 34 additions & 27 deletions
File tree
- libs
- labelbox/tests
- data
- annotation_import
- export/streamable
- lbox-alignerr/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1291 | 1292 | | |
1292 | | - | |
| 1293 | + | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | 1296 | | |
| |||
2155 | 2156 | | |
2156 | 2157 | | |
2157 | 2158 | | |
2158 | | - | |
| 2159 | + | |
2159 | 2160 | | |
2160 | 2161 | | |
2161 | 2162 | | |
| |||
2350 | 2351 | | |
2351 | 2352 | | |
2352 | 2353 | | |
2353 | | - | |
| 2354 | + | |
2354 | 2355 | | |
2355 | 2356 | | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
2363 | | - | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
2364 | 2366 | | |
2365 | | - | |
| 2367 | + | |
2366 | 2368 | | |
2367 | 2369 | | |
2368 | 2370 | | |
| |||
2382 | 2384 | | |
2383 | 2385 | | |
2384 | 2386 | | |
2385 | | - | |
| 2387 | + | |
2386 | 2388 | | |
2387 | 2389 | | |
2388 | 2390 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments