Commit 5072f64
committed
Test: Add test for specific-common-specific content and refactor fixtures
This commit adds a new test, `test__exclude_common_contents__specific_common_specific`, to verify that the `exclude_common_contents` function correctly handles the case where specific content is present both before and after a common content block.
To support this test, the following changes were made:
- Added `readme_content_specific_common_specific` fixture: This fixture generates README content with specific content before and after a common content block.
- Refactored `readme_content_double` fixture: This fixture now reuses the `readme_content_specific_common_specific` fixture to generate its content, improving code reuse and reducing duplication.
The new test asserts that the specific lines from both sections are preserved in the output, while the common lines are removed. This ensures that the function correctly handles the specific-common-specific scenario.1 parent caadab5 commit 5072f64
1 file changed
Lines changed: 43 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
380 | 421 | | |
381 | 422 | | |
382 | 423 | | |
| |||
387 | 428 | | |
388 | 429 | | |
389 | 430 | | |
390 | | - | |
391 | | - | |
| 431 | + | |
392 | 432 | | |
393 | 433 | | |
394 | 434 | | |
395 | 435 | | |
396 | 436 | | |
397 | | - | |
398 | | - | |
| 437 | + | |
399 | 438 | | |
400 | 439 | | |
401 | 440 | | |
| |||
0 commit comments