[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Unit testing PyQt applications
From: Luca Beltrame <einar () heavensinferno ! net>
Date: 2012-03-07 8:43:06
Message-ID: 1958848.gdlZPQILNq () giskard
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
In data mercoledì 7 marzo 2012 09:37:38, Mads Ipsen ha scritto:
> the Python unittest moudle. I have attached a few examples. If you have
> time to take a look and comment, it would be great.
I have a question on FooTest: is having a QApplication instance enough in
unittest to ensure emission of signals? Otherwise your problem does not only
apply to using threads, but to any use of unittest with signals and slots.
> * Hook up a slot which gets called when the thread finishes
As I said above, are signals emitted in the FooTest case? I ask because I've
been meaning to add unittest to my applications but I was not sure how to
handle the case of slots and signals.
> * Start the event loop by calling QtGui.qApp.exec_()
I think I've tried this in the past and it didn't quite work for me.
["signature.asc" (application/pgp-signature)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic