[py-dev] Using py.test with PyQt

Matthew Scott mscott at goldenspud.com
Fri Jul 29 03:47:41 CEST 2005


I currently have a need to write some unit tests for some custom PyQt
widgets, so I put together a base class for py.test based unit tests and
a corresponding QApplication subclass.

The code is available here if anyone would like to use it:

http://svn.orbtech.com/cgi-bin/schevo.cgi/file/branches/rebel/schevo_qt/test/__init__.py

Tests that may also serve as additional documentation are available here:

http://svn.orbtech.com/cgi-bin/schevo.cgi/file/branches/rebel/schevo_qt/test/test_test.py


It's pretty simple right now, but I'll probably take a closer look at
something like http://pyguiunit.sourceforge.net/ and implement some
helper functions like click(), typeText(), and so forth.


Feedback welcome and appreciated...


-- 
Matthew R. Scott



More information about the Pytest-dev mailing list