I guess you need to put @test Foo in headline of the test node.
In the body you could put something like this:

import foo
f = Foo()
self.assertEqual(Foo.somemethod(), value)

or whatever you want to test

than you press Alt+5 and the results of your tests will be written in
the terminal window, therefore you must start Leo from terminal (if
you use Windows, you must start Leo using python.exe not pythonw.exe

HTH
Vitalije

On Feb 20, 9:56 pm, rulfzid <rulf...@gmail.com> wrote:
> My question is basically: how do I get my @unit tests to look at my code?
>
> For example, say I have a simple tree that looks like:
>
> - code
> | - @file foo.py
> - tests
> | - @unit Test Foo creation
>
> When I try to run the tests now, it doesn't recognize the name Foo (defined
> as a class in foo.py), even if I toss an "import foo" in there. I suspect
> there's something simple I'm missing, but I'm not sure what it is.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to