sphinx/tests/test_transforms
Chris Sewell 05cc39d9b2
[rst] Improve unreferenced footnote warnings (#12730)
The previous `UnreferencedFootnotesDetector` transform was untested and missed warnings for a number of cases.

This commit adds a test, to cover a reasonable range of scenarios,
then changes how the detection works to pass this test.

The transform now runs just after the docutils `Footnote` resolution transform
(changing its priority from 200 to 622)
then simply check for any footnotes without "back-references".
2024-08-05 10:28:13 +02:00
..
__init__.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_transforms_move_module_targets.py Shrink mypy exclude list (#12669) 2024-07-23 22:19:15 +01:00
test_transforms_post_transforms_code.py Use `app.status and app.warning` in tests (#12663) 2024-07-23 15:35:55 +01:00
test_transforms_post_transforms_images.py Properly support WebP in the image converter (#12224) 2024-04-25 03:43:45 +01:00
test_transforms_post_transforms.py Use `app.status and app.warning` in tests (#12663) 2024-07-23 15:35:55 +01:00
test_transforms_reorder_nodes.py Organise tests into directories 2024-01-17 03:56:35 +00:00
test_unreferenced_footnotes.py [rst] Improve unreferenced footnote warnings (#12730) 2024-08-05 10:28:13 +02:00