userver: pytest_userver.plugins.sql_coverage Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.sql_coverage Namespace Reference

Detailed Description

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']

Function Documentation

◆ pytest_collection_modifyitems()

None pytest_collection_modifyitems ( pytest.Config config,
list[pytest.Item] items )

Definition at line 124 of file sql_coverage.py.

◆ pytest_generate_virtual_tests()

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()

test_sql_coverage ( sql_coverage,
on_uncovered )

Definition at line 106 of file sql_coverage.py.

Variable Documentation

◆ pytest_plugins

list pytest_userver.plugins.sql_coverage.pytest_plugins = ['pytest_userver.plugins.generated_tests']

Definition at line 15 of file sql_coverage.py.