[TIP] pytest fixtures started after unittest.TestCase.setUpClass
nicoddemus at gmail.com
Thu Jan 4 15:51:06 PST 2018
(Cool to know you use pytest-qt :))
On Thu, Jan 4, 2018 at 7:31 PM Dan Nealschneider <
dan.nealschneider at schrodinger.com> wrote:
> 1. How should I ensure that start_qapp is run before any test or test
Unfortunately the only way I know of is to change your setUpClass method
into an autouse fixture, this technique is detailed here:
> 2. Does this seem like a bug/RFE that I should report to pytest?
This has actually been discussed extensively  and there is an
implementation idea which is easy to implement and would make xunit
setup/fixtures work better together  but there's the concern of breaking
backward compatibility: definitely there are people who depend on the
current behavior and just changing this would break their test suite in
subtle and no fun ways .
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python