mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-17 15:17:52 -06:00
docs: fetch platform files before the PR tests
This commit is contained in:
1 parent
747d40e988
commit
bd50b08133
4 files changed
+31
No files matched your search
@@ -611,3 +611,28 @@ class EveryOptionExists(unittest.TestCase):
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
|
||||
class ContributorChecksFetchThePlatformsFiles(unittest.TestCase):
|
||||
"""validate.yml fetches each platform's own file before the suite. The
|
||||
checklist left it out, so the exporter fidelity cases skipped on a
|
||||
contributor's clone and first ran, red, in CI."""
|
||||
|
||||
def test_the_pr_checklist_fetches_them_before_the_tests(self):
|
||||
workflow = _read(".github/workflows/validate.yml")
|
||||
self.assertLess(
|
||||
workflow.index("python scripts/export_native.py --all --fetch"),
|
||||
workflow.index("python -m unittest discover"),
|
||||
)
|
||||
for text in (
|
||||
contributing_text(lambda page: page, "# C", "here"),
|
||||
_read("CONTRIBUTING.md"),
|
||||
):
|
||||
block = _section(text, "## Before opening a PR")
|
||||
self.assertIn("python scripts/export_native.py --all --fetch", block)
|
||||
self.assertLess(
|
||||
block.index("export_native.py"), block.index("unittest discover")
|
||||
)
|
||||
|
||||
def test_the_testing_guide_names_the_command(self):
|
||||
self.assertIn("export_native.py --all --fetch", _read("wiki/testing-guide.md"))
|
||||
Reference in new issue
Block a user