I'm wondering what the status of version 0.9 is? I'm waiting for it before I check in my automated tests. I have half of the existing tests converted to unittest.TestCase. It was pretty easy.

I'd like to get check them in because then I can look into refactoring the internals to make actual unit tests possible. I'm thinking of unit tests for ServletFactory so I can test my CheetahServletFactory, and also servlet.serverSidePath() because I feel it doesn't work consistently.

A big obstacle seems to be the Transaction object. It is basically a place to keep all sorts of "global" objects that everybody uses: the application instance, the current servlet, request, response, session store, and some others. But that means modules cannot be separated because they rely on this transaction object being there and all the things within it. I see two ways to go forward:
(1) Create a mock transaction object, so you can test one module without getting others involved,
(2) Eliminate dependencies on the transaction object.

Can anybody tell me more about the Transaction object? Does it have any other role besides passing things around? Any opinions on how easy it would be to decouple things from Transaction? Or what might be needed in a MockTransaction object?

-winston

<x-tad-smaller>_________________________________________
winston wolff - (646) 827-2242 - http://www.stratolab.com - learning by creating
</x-tad-smaller>

Reply via email to