Using aeta with webtest

22 views
Skip to first unread message

Thomas Ait-taleb

unread,
Mar 20, 2013, 4:08:14 PM3/20/13
to appengi...@googlegroups.com
Hi,

I'm currently unit testing my GAE application the same way described here and here with a custom test runner script (launched from command line).

I've just discovered aeta and I want to migrate my tests suite to use aeta instead of custom script and also in order to test in production environment.

I followed the instructions to use aeta and it works well except for some test cases.

The problem is that it doesn't seem to work for handlers testing which use "webtest" module.
The error I faced is: it cannot import "webtest" module and also mail_stub doesn't work either.

I searched on Google but couldn't find anything about this problem.

Is there a way to test handlers using aeta and webtest module? please.
Or maybe I missed something about aeta?

Thanks in advance.

Robert Schuppenies

unread,
Mar 21, 2013, 11:40:09 AM3/21/13
to appengi...@googlegroups.com
Hi Thomas.

You cannot use the mail stub in an appserver environment because it's implementation uses subprocess.popen which is only available in devappserver.

As for webtest, can you import webtest in the interactive console on appserver? I suspect it is only a path issue because it should act like any other package you import. Gotta admit though that I haven't used the aeta+webtest combination myself, yet. 


--
You received this message because you are subscribed to the Google Groups "appengine-aeta" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appengine-aet...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages