Answer stability round 2: 0 🔴, 1 🟡 (0 misread); test loop-claude's DM through the faked HTTP edge instead of the patched dm, and narrow the comment on which stops are DMed
CI / tests (pull_request) Successful in 2m22s

This commit was merged in pull request #523.
This commit is contained in:
2026-11-13 20:48:43 +01:00
parent a55ecc0be6
commit effe6393c0
3 changed files with 10 additions and 10 deletions
-9
View File
@@ -13,7 +13,6 @@ import unittest.mock
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from mattermost_dm.dm import http_json
from loop_effects.effects import run_python, say, system_effects
NOW = 1790000000
@@ -59,14 +58,6 @@ class Said(unittest.TestCase):
self.assertEqual(flushes, [f"{STAMP} hello\n"])
class Dm(unittest.TestCase):
def test_sends_the_text_for_the_project_holding_the_current_directory_with_the_real_http(self):
with unittest.mock.patch("loop_effects.effects.dm", return_value=None) as sent:
self.assertIsNone(system_effects().dm("Which one?"))
sent.assert_called_once_with("Which one?", None, pathlib.Path.home(), http_json)
class LocalTime(unittest.TestCase):
def test_renders_seconds_in_the_machines_zone(self):
# A POSIX zone two hours ahead of UTC, so a time in UTC would read 14:13:20. Cleanups run last in, first out: the zone is restored before time.tzset makes the clock read it again.