Neither pdb or print() displays the bug

Fabio Zadrozny fabiofz at gmail.com
Sun Jun 6 06:21:34 EDT 2021


Em qua., 2 de jun. de 2021 às 09:34, Rich Shepard <rshepard at appl-ecosys.com>
escreveu:

> On Wed, 2 Jun 2021, Peter Otten wrote:
>
> > Do you have unit tests? Those are an excellent tool to ensure that the
> > components of an application work as expected and that those components
> > have well-defined interfaces. Debugging a failing unittest is usually
> > easier than to debug a complex application. While I don't know if there
> is
> > a convenient way to test the GUI everything else should run reliably
> > *before* connecting it with the GUI.
>
> Peter,
>
> I believe there is a way to apply unit tests to PyQt and I'll certainly
> learn to take this testing-while-developing approach.
>

Hint: you should be able to use https://pypi.org/project/pytest-qt/ to
unit-test a PyQt application...


More information about the Python-list mailing list