On Saturday, April 4, 2026 at 7:09:47 AM UTC-5 Edward K. Ream wrote:
>>This [virtual user] script's eventual purpose will be to call every
g.check* function throughout Leo's code.
>So, for example, the script should alter the body pane, create and delete tree nodes, etc., etc.
The virtual user was a useful starting point (thought experiment), but its code was too clever by half. I'll omit the details.
Instead, the corresponding unit test can just test the ground truth of annotations directly. This is a much simpler task!
The unit test will ensure that the actual wrapper and widget classes have the expected values (obj.__class__.__name__). The unit test will "cheat": it will know that some wrappers have a "widget" ivar, others have a "bodyCtrl" ivar, etc.
And there should be (perhaps already is) a similar unit test that runs with the Null gui.
Edward
P.S. I have
finally gotten around to reading info item
#1585: Notes re Leo's codebase. It's basically useless :-) I'll update it as part of the concrete annotations PR.
EKR