Fail the tests that skipped at run time, naming what they miss, and give CI's tests docker

This commit is contained in:
2026-11-18 17:33:04 +01:00
parent fa34d832aa
commit 9cc505b764
11 changed files with 37 additions and 39 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ from routing_figures.state import due
from claude_code.entries import entry_from
from failure import Failure
from git_cli import git_repo
from test_env import isolated_env
from test_env import assert_not_root, isolated_env
from plan.todo_table import Item
from transcript_archive import outcomes, write
from model_routing.ladder_file import read_ladder, SHIPPED
@@ -495,8 +495,8 @@ class Archive(unittest.TestCase):
self.assertIsNone(state.mark_raised(self.root, [a], "2026-10-15T02:00:00Z"))
self.assertEqual(state.raised(self.root), state.Raised("2026-10-15T01:00:00Z", frozenset({a})))
@unittest.skipIf(os.geteuid() == 0, "root writes into a read-only directory")
def test_fails_when_it_cannot_keep_the_state(self):
assert_not_root(self)
self.root.chmod(0o555)
self.addCleanup(self.root.chmod, 0o755)
self.assertIsInstance(state.mark_measured(self.root, 40), Failure)