Answer stability round 1: 0 🔴, 2 🟡 (0 misread); run CI's image untagged and state where the socket must be

This commit is contained in:
2026-11-18 18:05:39 +01:00
parent 59c319ebb4
commit aa62b081fb
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from run_tests import main
BIN = pathlib.Path(__file__).resolve().parents[1]
# The pytest and pytest-xdist run-tests pins, without its worker count, so the tests run them whether or not the interpreter running the tests has pytest.
# run-tests' own pytest command, without its worker count. uvx fetches pytest for it, so the Run tests need no pytest installed.
PYTEST_PINNED = [*main.PYTEST[:main.PYTEST.index("-n")], "-p", "no:cacheprovider"]
@@ -124,7 +124,7 @@ class Run(unittest.TestCase):
with tempfile.TemporaryDirectory() as folder:
pathlib.Path(folder, "test_ok.py").write_text("def test_ok():\n\tprint('noise from a passing test')\n")
code, output = self.run_in(folder, PYTEST_PINNED, "-s", folder)
self.assertEqual(code, 0)
self.assertEqual(code, 0, output)
lines = output.rstrip("\n").splitlines()
self.assertEqual(len(lines), 2, output)
self.assertRegex(lines[0], r"^=+ 1 passed in .* =+$")