From 227c900c9ab03922c5ffb0f6382a9c856a005a0a Mon Sep 17 00:00:00 2001 From: akacross Date: Sun, 18 Oct 2026 11:15:48 -0400 Subject: [PATCH] Give the number-clipboard test's view double the Authored accessor 8fb8cd3e made NumberControlView hold its authored properties by pointer and read them through Authored(id). ui_number_clipboard.py compiles that view's validation block unchanged against a Mock, which still had only the map, so the harness no longer compiled ("no member named 'Authored' in 'Mock'") and stopped the Validation Script Smoke job on main and every pull request since. The Mock now offers the same accessor over its map. The production code is untouched, and the test exercises it as before. Co-Authored-By: Claude Opus 5.5 --- tools/tests/ui_number_clipboard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tests/ui_number_clipboard.py b/tools/tests/ui_number_clipboard.py index a4a854c6e..315adadfa 100644 --- a/tools/tests/ui_number_clipboard.py +++ b/tools/tests/ui_number_clipboard.py @@ -288,6 +288,8 @@ def validation_source(): struct Mock { struct String {std::string text;}; std::map> authored{{"validation",{{"text",{"#str_authored"}}}}}; + // The view reads authored properties through Authored() since 8fb8cd3e. + const std::map& Authored(const std::string& id) const {return authored.at(id);} std::function validation; std::function translate=[](const auto& key){return "translated:"+key;}; std::string text;bool visible=false;