[Dev] Mock Reactor for tests?

Mike Taylor bear at code-bear.com
Tue Jun 7 12:21:20 PDT 2005


On Jun 7, 2005, at 2:04 PM, Phillip J. Eby wrote:

> I've also investigated the run()/stop() issue, and as far as I can 
> tell this should be a non-issue for tests that run using the Twisted 
> default reactor (which is what Chandler uses).  The reason that you 
> aren't supposed to use run()/stop() or certain other functions 
> multiple times (AFAICT), is because certain GUI-platform-specific 
> reactor implementations won't tolerate it.  However, tests that don't 
> run with a GUI don't need to use a GUI-specific reactor, and we're not 
> using one in Chandler currently anyway.

Current unit tests do not use a GUI but real-soon-now we will have 
startup unit tests and also unit tests that require the GUI.

---
Bear
http://code-bear.com

Open Source Applications Foundation (OSAF)
http://www.osafoundation.org

PGP Fingerprint = 9996 719F 973D B11B E111  D770 9331 E822 40B3 CD29

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.osafoundation.org/pipermail/dev/attachments/20050607/6eb22169/PGP.pgp


More information about the Dev mailing list