mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
22 lines
759 B
Python
22 lines
759 B
Python
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()
|