On Mon, May 4, 2020 at 7:44 AM vitalije <[email protected]> wrote:
> I have changed your first test script to work. I am not sure if that is
all you wanted.
It fails as in my previous tests. In leoUndo.py I used your version of
g.command_method:
@g.command_method('undo')
def undo(self, event=None):
... rest of code unchanged
And similarly for the redo method.
The unit test @test clone-marked-nodes then failed:
TypeError: inner_wrapper() missing 1 required positional argument: 'event'
So I changed:
def inner_wrapper(self, event):
to
def inner_wrapper(self, event=None):
I've always had a bad feeling this kind of binding hack.
With this change another test failed:
@test paste and undo in headline - at end
...
AssertionError: oops3 got: Test headline abcABC
These are the failures I got yesterday. I have no idea how to make this
work. It feels like drowning in an inch of water...
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/09d25be5-c813-4989-bc4a-0cef9059c726%40googlegroups.com.