mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 06:18:51 -06:00
refactor: derive the python 3.8 module list
pr_checks.py builds it from tests/test_tui_*.py, and a test holds the validate.yml line to it.
This commit is contained in:
1 parent
5f354c8faf
commit
b2d4eee534
2 files changed
+15
-7
No files matched your search
@@ -284,6 +284,17 @@ class OneCommandRunsTheChecks(unittest.TestCase):
|
||||
with self.subTest(step=step.command):
|
||||
self.assertIn(step.command, section)
|
||||
|
||||
def test_ci_runs_every_full_screen_module_on_the_floor(self):
|
||||
"""The 3.8 list was written twice, in validate.yml and in
|
||||
pr_checks.py, and a new test_tui_ module reached neither."""
|
||||
from devtools import prchecks
|
||||
|
||||
workflow = (REPO_ROOT / ".github" / "workflows" / "validate.yml").read_text(encoding="utf-8")
|
||||
line = next(line for line in workflow.splitlines() if "run: python3.8 -m unittest" in line)
|
||||
ran = tuple(word for word in line.split() if word.startswith("tests."))
|
||||
self.assertEqual(ran, prchecks.TUI_MODULES)
|
||||
self.assertIn("tests.test_tui_pty", prchecks.TUI_MODULES)
|
||||
|
||||
def test_a_missing_tool_is_reported_and_a_failure_does_not_stop_the_run(self):
|
||||
import contextlib
|
||||
import io
|
||||
|
||||
Reference in new issue
Block a user