Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: Resources/pointers for writing maintable, testable Python Date: Thu, 19 May 2016 12:23:27 -0400 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de WA8oeT+skjjBYSKOjQ+WLwKoXpWZwJeSMLVleqecJpfg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'apps,': 0.07; 'keys,': 0.07; 'mouse': 0.07; 'wednesday,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; '<>.': 0.11; 'jan': 0.11; '2016': 0.16; 'buttons,': 0.16; 'driscoll': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'selenium': 0.16; 'simulate': 0.16; 'simulated': 0.16; 'subject:writing': 0.16; 'url:oreilly': 0.16; 'wrote:': 0.16; 'example.': 0.18; 'tkinter': 0.22; 'am,': 0.23; 'needed.': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'external': 0.27; 'andrew': 0.27; 'screen.': 0.29; 'testing.': 0.29; 'mike': 0.29; 'subject:/': 0.30; 'probably': 0.31; 'idle': 0.33; 'impression': 0.33; 'case,': 0.34; 'primarily': 0.35; 'needed': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'version': 0.38; 'test': 0.39; 'to:addr:python.org': 0.40; 'is.': 0.63; 'received:96': 0.63; 'url:index': 0.67; 'clicking': 0.75; 'saw': 0.77; 'perspective.': 0.84; 'received:fios.verizon.net': 0.91; 'url:books': 0.91; 'chapters': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-96-227-207-81.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:108829 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 >> . 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