> > Take a look in the *leo-editor\leo\unittests* directory. For example, > *test_gui.py* imports g. etc. Maybe that will be enough to get started. > >> >> My intuitive thought is that there are two types of tests in Leo, >> >> >> 1. Testing of common Python function script nodes, >> >> >> 2. Tests that require a Leo context, such as g, c, p, etc. >> >> 2.1 Test with Leo already open, because there are already g, c, p >> >> 2.2 Testing without Leo open. It is no different from a normal python >> program. e.g. 'python -m unittest' >> >> >> Thanks, Thomas, I checked, but failed to understand, that is for 2.2 scene, right?
My main question is about 1, and 2.1 scenarios. How to perform specific operations in Leo, not how the code should be written -- 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/CA%2BUQrQwKQfFTWp_Hrp4YSF_d6tx2VXu2f7_efqHXijHt21U2hw%40mail.gmail.com.
