Commit 9568eae
committed
test(crawlers): fix python METADATA blank-line break test
The earlier fixture set BOTH Name and Version before reaching the
blank line, so the function broke via the both-set guard at L71-72
instead of the blank-line break at L80-81. Replace with a fixture
where only Name is set when the blank line is hit — that forces the
L80-81 path and verifies the function correctly returns None when
the trailer is interrupted before Version is read.
Assisted-by: Claude Code:claude-opus-4-71 parent f1b0474 commit 9568eae
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
| 442 | + | |
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | | - | |
448 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | | - | |
| 454 | + | |
452 | 455 | | |
453 | 456 | | |
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
458 | | - | |
459 | | - | |
460 | | - | |
| 461 | + | |
| 462 | + | |
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| |||
0 commit comments