python - unit testing gae with login setting in app.yaml -



python - unit testing gae with login setting in app.yaml -

i'm unit testing google app engine app uses login setting in app.yaml file. e.g.,

- url: /profile script: main.py login: required

i'm using testbed, nose, nose-gae, , webtest though not sure of matter.

my problem login setting app.yaml ignored during testing. if don't have logged in user , call

response = self.app.get("/profile")

i requested page instead of beingness redirected login page.

is there way test login settings app.yaml?

not using unit test. tests calling handler directly, doesn't involve dev_appserver, component enforces these restrictions. if want test these restrictions, you'll need end-to-end test invokes dev_appserver , calls on http.

python unit-testing google-app-engine nose testbed

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -