mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-13 13:33:52 -06:00
fix: follow the doc tests to --refresh-cache
This commit is contained in:
1 parent
0bceb6ca2c
commit
10dc67b63a
1 file changed
+3
-3
@@ -619,7 +619,7 @@ class ContributorChecksFetchThePlatformsFiles(unittest.TestCase):
|
||||
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 scripts/export_native.py --all --refresh-cache"),
|
||||
workflow.index("python -m unittest discover"),
|
||||
)
|
||||
for text in (
|
||||
@@ -627,13 +627,13 @@ class ContributorChecksFetchThePlatformsFiles(unittest.TestCase):
|
||||
_read("CONTRIBUTING.md"),
|
||||
):
|
||||
block = _section(text, "## Before opening a PR")
|
||||
self.assertIn("python scripts/export_native.py --all --fetch", block)
|
||||
self.assertIn("python scripts/export_native.py --all --refresh-cache", 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"))
|
||||
self.assertIn("export_native.py --all --refresh-cache", _read("wiki/testing-guide.md"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user