opnsense-src/tests/atf_python
Alexander V. Chernikov 89ffac3b01 testing: allow custom test cleanup handlers in pytest
In order to provide more flexibility for the test writers,
add per-test-method cleanups in addition to the per-class cleanups.

Now the test 'test_one' can perform cleanup by either defining
per-class 'cleanup' method (typically used in VNET classes) and
per-test method 'cleanup_test_one'. The latter has preference.
In order to handle paramatrization, testid is passed as a single
 argument to both of the methods.

MFC after:	2 weeks
2022-12-31 16:27:27 +00:00
..
sys testing: improve python vnet wrapper. 2022-12-29 19:59:11 +00:00
__init__.py
atf_pytest.py testing: allow custom test cleanup handlers in pytest 2022-12-31 16:27:27 +00:00
Makefile netlink: connect netlink tests to the build 2022-12-16 12:02:50 +00:00
utils.py testing: improve python vnet wrapper. 2022-12-29 19:59:11 +00:00