mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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 |
||
|---|---|---|
| .. | ||
| sys | ||
| __init__.py | ||
| atf_pytest.py | ||
| Makefile | ||
| utils.py | ||