Plugin that imports the required fixtures for checking SQL/YQL coverage.
See SQL coverage tests for more info.
Classes | |
| class | Coverage |
| Contains data about the current coverage of statements. More... | |
Functions | |
| on_uncovered () | |
| Called when the coverage is incomplete. | |
| Coverage | sql_coverage (sql_files) |
| Returns data about the current coverage of statements. | |
| sql_statement_hook (testpoint, sql_coverage) | |
| Hook that accepts requests from the testpoint with information on PostgreSQL statements coverage. | |
| yql_statement_hook (testpoint, sql_coverage) | |
| Hook that accepts requests from the testpoint with information on YDB statements coverage. | |
| test_sql_coverage (sql_coverage, on_uncovered) | |
| Iterable[pytest.Item] | pytest_generate_virtual_tests (pytest.File parent, pytest.Config config, Sequence[pytest.Item] existing_items) |
| None | pytest_collection_modifyitems (pytest.Config config, list[pytest.Item] items) |
Variables | |
| list | pytest_plugins = ['pytest_userver.plugins.generated_tests'] |
| None pytest_collection_modifyitems | ( | pytest.Config | config, |
| list[pytest.Item] | items ) |
Definition at line 124 of file sql_coverage.py.
| Iterable[pytest.Item] pytest_generate_virtual_tests | ( | pytest.File | parent, |
| pytest.Config | config, | ||
| Sequence[pytest.Item] | existing_items ) |
Definition at line 110 of file sql_coverage.py.
| test_sql_coverage | ( | sql_coverage, | |
| on_uncovered ) |
Definition at line 106 of file sql_coverage.py.
| list pytest_userver.plugins.sql_coverage.pytest_plugins = ['pytest_userver.plugins.generated_tests'] |
Definition at line 15 of file sql_coverage.py.