mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
test: make linear pathing suite manifest-driven
This commit is contained in:
parent
e4fc557aac
commit
84a452d5c9
3 changed files with 204 additions and 88 deletions
22
tools/tests/test_pathing_live_scripts.py
Normal file
22
tools/tests/test_pathing_live_scripts.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import subprocess
|
||||
import unittest
|
||||
|
||||
|
||||
class PathingLiveScriptTests(unittest.TestCase):
|
||||
def test_test_parkour_lists_linear_canonical_cases(self) -> None:
|
||||
result = subprocess.run(
|
||||
["bash", "tools/test-parkour.sh", "--list-cases"],
|
||||
check=False,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
)
|
||||
|
||||
self.assertEqual(result.returncode, 0, result.stderr)
|
||||
self.assertIn("linear-flat-sprint-mm12-gap5-dy0p0", result.stdout)
|
||||
self.assertIn("linear-ascend-sprint-mm12-gap2-dy1p0", result.stdout)
|
||||
self.assertNotIn("linear-flat-walk-mm12-gap5-dy0p0", result.stdout)
|
||||
self.assertNotIn("linear-flat-sprint-mm0-gap3-dy0p0", result.stdout)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue