From 177b4b1fcfb78b7fe312f9ec357d29bfa4ecc1d7 Mon Sep 17 00:00:00 2001 From: Libby Date: Tue, 10 Nov 2026 17:42:29 +0000 Subject: [PATCH] Blender add-on tests: the guard test no longer pins the store's spelling of an empty put CultLib's store now refuses it as message_invalid, not malformed, so the test failed on main against current CultLib. It now asserts what it means: past the guard, a coded store refusal that is not the guard's own (codeless, names the token field). Co-Authored-By: Claude Sonnet 5.5 --- surfaces/blender/tests/test_server_guard.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/surfaces/blender/tests/test_server_guard.py b/surfaces/blender/tests/test_server_guard.py index 10f964b..439cfe0 100644 --- a/surfaces/blender/tests/test_server_guard.py +++ b/surfaces/blender/tests/test_server_guard.py @@ -259,7 +259,11 @@ class RealServerTests(unittest.TestCase): self.assertEqual(server._handle_connection_message(message, {})[0]["schemaVersion"], "cultnet.error.v0") message[sg.TOKEN_FIELD] = self.target.session_token response = server._handle_connection_message(message, {}) - self.assertIn("malformed", response[0].get("code", "")) # past the guard, refused by the store as an empty put + # Past the guard: the store refuses the empty put and says so with a code. The guard's own + # refusal is codeless and names the token field, so either is told apart from the other + # without pinning the store's spelling of "an empty put is invalid". + self.assertTrue(response[0].get("code")) + self.assertNotIn(sg.TOKEN_FIELD, str(response[0])) def test_a_peer_put_is_accepted_over_tcp_because_the_target_grants_peer_writes(self): status = self.start() -- 2.47.3