Files
pytest2/testing/plugins_integration
Ran Benita de47b73520 unittest: fix assertion errors on unittest reruns
This fixes unittest test reruns when using plugins like
pytest-rerunfailures.

The `instance` property uses AttributeError to check if the instance
needs to be initialized, so `del` is the correct way to clear it, not
setting to `None`.

Regressed in 8.2.2.
2024-06-07 10:21:15 +03:00
..
2022-01-23 23:07:28 +02:00

This folder contains tests and support files for smoke testing popular plugins against the current pytest version.

The objective is to gauge if any intentional or unintentional changes in pytest break plugins.

As a rule of thumb, we should add plugins here:

1. That are used at large. This might be subjective in some cases, but if answer is yes to
   the question: *if a new release of pytest causes pytest-X to break, will this break a ton of test suites out there?*.
2. That don't have large external dependencies: such as external services.

Besides adding the plugin as dependency, we should also add a quick test which uses some
minimal part of the plugin, a smoke test. Also consider reusing one of the existing tests if that's
possible.