Testing should work fine -- the key is if you use appengine-homedir,
it'll setup your data store in sitecustomize.py (automatically on
Python startup), then you get your application instance by calling
make_app directly.  So it should look like:

testapp = webtest.TestApp(myapp.wsgiapp.make_app({}, {config}))
# do stuff with testapp

Or replace whatever code currently uses paste.deploy.loadapp with this
direct make_app call.

On Sat, Oct 10, 2009 at 12:25 AM, Matt Feifarek <[email protected]> wrote:
> I've been working on getting Pylons running on GAE and documenting my
> discoveries.
> (see thread here:
> http://groups.google.com/group/pylons-discuss/browse_thread/thread/fa7d8defef1babfa/a16416074cca2660?lnk=raot#)
>
> I seem to have stumped myself as far as running tests with WebTest et al.
>
> Since test.ini is gone, and since the app is no longer run via paste (but by
> the GAE SDK) is it reasonable to run nosetests on controllers?
>
> Thanks.
>
> >
>



-- 
Ian Bicking  |  http://blog.ianbicking.org  |  http://topplabs.org/civichacker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to