Hello,
I've been using webtest to unit test my application and I've encountered a 
strange issue. I wrap many of my get/post handlers in decorators and in 
some of those decorators, I put ndb.Model instances in os.environ for later 
use in the subsequent handler. This works on my local dev server and in 
production. However, when I run nosetests it always gives me an error:
 
os.environ["user"] = user
File "C:\Python27\lib\os.py", line 420, in __setitem__
    putenv(key, item)
TypeError: must be string, not User
 
Any ideas on how to mitigate this so my tests won't error out at this point?
 
Thanks,
Richard

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Re8qzrUmbooJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to