How to get Eclipse + PyDev + App Engine + Unit working?

I want to run my unit tests for a Python project for Google App Engine using

Running As => Python Block Test

But when I try to run all my model tests with an error message:

BadArgumentError: app must not be empty. 

Has anyone got this to work?

NB: tests work fine using Nose --with-gae. But I want PyDev integration with resource hyperlink, etc.

+4
source share
1 answer

Having inserted the answer, I received from Fabios (the creator of PyDev) myself on the PyDev forums on SF: https://sourceforge.net/projects/pydev/forums/forum/293649/topic/3618848

There is no such option right now ... please enter a function request for this. Note that you can run the nose from within pydev (with the --with-gae option), which will at least give you a hyperlink inside pydev - just create a custom run where the nose is the main script.

In fact, this is what I did, and it works as advertised. I also included this feature request. You can help by clicking your support for the request: https://sourceforge.net/tracker/?func=detail&aid=2974043&group_id=85796&atid=577332

+3
source

Source: https://habr.com/ru/post/1304509/


All Articles