Resources/pointers for writing maintable, testable Python
Terry Reedy
tjreedy at udel.edu
Thu May 19 12:23:27 EDT 2016
On 5/19/2016 11:33 AM, Mike Driscoll wrote:
> On Wednesday, May 18, 2016 at 4:48:28 PM UTC-5, Andrew Farrell wrote:
>> Hi Jacob,
>>
>> You are probably looking for the book Test-Driven Development with Python
>> <http://chimera.labs.oreilly.com/books/1234000000754/index.html>.
Electronic version is free online.
> I was under the impression that this book is primarily aimed at Python/Django web testing. I saw
It is. However, the first four chapters cover the general principles of
TDD, so one can read them while thinking of web development as just an
illustrative example.
In my case, I learned better how to test IDLE from a user perspective.
For tkinter apps, an external program such as Selenium is not needed.
Tk/tkinter have the simulated event generation and introspection needed
to simulate a user hitting keys, clicking mouse buttons, and reading the
screen.
--
Terry Jan Reedy
More information about the Python-list
mailing list