On Mon, Oct 21, 2013 at 11:06 PM, wgw <[email protected]> wrote:

> I am trying to get nose working in leo. Has anyone else had success?
>

Not much myself so far.  However,




    def check_it(x,y):
        assert x + x == addit(x,y)

is wrong.  The assert should be:

    assert x + y == addit(x,y)

Even better would be:

    assert x + y == addit(x,y),'expeced %s, got %s' % (x+y,addit(x,y))

Also, I suggest you run this script nose from a console, or with something
like this Leo script::

    import nose
    command = r'python <path-to-nosetest>/nosetest.py'
    g.execute_shell_commands(command,trace=True)

HTH.

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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to