[py-dev] Re: Using py.test with PyQt
Michael Thompson
spamtrap at day8.com.au
Fri Jul 29 15:33:04 CEST 2005
Matthew Scott wrote:
> 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...
>
>
If you want a version of pyQuiUnit amended for py.test, you might be
interested in the attached. I've used it a bit (but it is by no means
polished code) and found it very useful.
--
Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QtWidgetTester.zip
Type: application/x-zip-compressed
Size: 7797 bytes
Desc: not available
Url : http://codespeak.net/pipermail/py-dev/attachments/20050729/acffe033/QtWidgetTester.bin
More information about the py-dev
mailing list