(pytestconfig: pytest.Config)
| 7224 | |
| 7225 | @pytest.fixture(autouse=True, scope="session") |
| 7226 | def run_around_tests(pytestconfig: pytest.Config): |
| 7227 | setUp() |
| 7228 | yield |
| 7229 | # We don't want to run the VerifyAllCategoriesAreSeen() test unless |
| 7230 | # we're running the full test suite: if we only run one test, |
| 7231 | # obviously we're not going to see all the error categories. So we |
| 7232 | # only run VerifyAllCategoriesAreSeen() when we don't filter for |
| 7233 | # specific tests. |
| 7234 | if pytestconfig.getoption("-k", default=None) in {None, ""} and not any( |
| 7235 | "::" in arg for arg in pytestconfig.args |
| 7236 | ): |
| 7237 | ErrorCollector(None).VerifyAllCategoriesAreSeen() |
| 7238 | |
| 7239 | |
| 7240 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected