Hi Group!

I already asked this in the IRC channel, but while asking, the question
seemed to better fit to the mailing list:

Thanks to nose, I have written a test generator that takes a (very)
nested data structure and yields test cases from it.
The code is here:
https://github.com/moschlar/SAUCE/blob/develop/sauce/tests/functional/test_site.py
Its purpose is at first for me to check if all types of pages at least
get served without exceptions (regardless of *what* gets rendered in
this case) and to check if authz works correctly for all the pages by
specifying valid HTTP responses.

It works quite well, except for the fact that its slow as hell!
I suspect that it could be much fast, if the test fixture wouldn't have
to be executed for each of these simple HTTP requests. I think I can
safely assume that this won't have negative side effects in this case so
I would like to take the application setUp and tearDown from
sauce.tests.TestController and put them on the module level in the
test_site module.

A first try was unsuccessfull since I couldn't figure out how to get an
app instance initialized that I could use there.

My first try was to simply take the fixture methods and put them on
module level in test_site.py, but that failed with
ResourceClosedError: The transaction is closed
in the setup-app part of the setUp method.

Maybe anyone has a recipe for that or a running example that could
inspire me! :D

Thanks a lot,
Moritz

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to