mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-19 16:17:49 -06:00
docs: show --required-only in the README
This commit is contained in:
1 parent
329fcc0f62
commit
8d0ba26a0f
3 files changed
+18
-1
No files matched your search
@@ -1700,5 +1700,16 @@ class InstallerVariablesAreDocumented(unittest.TestCase):
|
||||
self.assertIn("cache", section[:section.index("\n## ", 1)])
|
||||
|
||||
|
||||
class ReadmeKeepsItsPointers(unittest.TestCase):
|
||||
def test_the_bare_minimum_is_built_below(self):
|
||||
"""The README sent a reader to 'build your own pack below' for a bare
|
||||
minimum, and the block below never named --required-only."""
|
||||
readme = (ROOT / "README.md").read_text(encoding="utf-8")
|
||||
self.assertIn("For a bare minimum, build your own pack below.", readme)
|
||||
block = readme[readme.index("## Build your own pack"):]
|
||||
block = block[:block.index("\n## ", 1)]
|
||||
self.assertIn("--required-only", block)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user