Answer principles round 1: 0 🔴, 3 🟡 (0 misread); type-check every tool for README's Python, check the worker count, pin pytest

This commit is contained in:
2026-10-28 12:28:57 +01:00
parent 084d763412
commit dd4bcbd1c4
4 changed files with 37 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
import pathlib
import re
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from machine_load.slots import CPUS_PER_SLOT
from repo_checks import ROOT
class TestLine(unittest.TestCase):
def test_the_readme_runs_the_tests_in_one_heavy_slots_cpus(self):
workers = re.search(r"pytest==\S+ -n (\d+) bin`", (ROOT / "README.md").read_text(encoding="utf-8"))
self.assertIsNotNone(workers, "README.md's Test line runs `pytest==X -n N bin`")
self.assertEqual(int(workers.group(1)), CPUS_PER_SLOT)