docs: install markdown with the test dependencies

CONTRIBUTING and the testing guide installed pyyaml and jsonschema only, while the CI test job also installs markdown. On a contributor's machine the wiki heading test skipped and the run read OK. Both name it now, and a test compares them to the packages the tests import.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 02:24:36 +02:00
1 parent 392a5d68cc
commit b402a8b917
4 files changed
+23 -7

No files matched your search

+16
View File
@@ -202,6 +202,22 @@ class EveryTestDependencyIsInstalledInCi(unittest.TestCase):
)
self.assertEqual(missing, [])
def test_a_contributor_installs_what_ci_installs(self):
# The contributing page installed pyyaml and jsonschema only, so the
# markdown test skipped on a contributor's machine and ran in CI.
from generate_readme import generate_contributing
command = next(
line for line in generate_contributing().splitlines() if "pip install" in line
)
guide = (Path(__file__).resolve().parents[1] / "wiki" / "testing-guide.md").read_text(
encoding="utf-8"
)
for package in self.PACKAGES.values():
with self.subTest(package=package):
self.assertIn(package, command)
self.assertIn(package, guide)
class TheTestingGuideNamesEveryModule(unittest.TestCase):