All Unkept

Django and Twill

Posted in: Python, Web development, Django  — 

Django's test client is very limited when it comes to testing complex interactions e.g. forms with hidden or persisted values etc. Twill excels in this area, and I am gald to have discovered it is now very easy to integrate it without having to abandon any existing test suite or Django's method of running tests and doing fixtures etc. Have a look at my snippets for calling Twill from within Django unit tests.

Disclaimer: most of the hard work was done by 'Mick' in Basic Twill intercept testing of Django and the Twill folks for making this possible.

Comments §

blog comments powered by Disqus