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.
 
 pytest_collection_modifyitems (config, items)
 

Variables

str _SQL_COVERAGE_TEST_NAME = 'test_sql_coverage'
 

Function Documentation

◆ pytest_collection_modifyitems()

pytest_userver.plugins.sql_coverage.pytest_collection_modifyitems (   config,
  items 
)

Definition at line 106 of file sql_coverage.py.

Variable Documentation

◆ _SQL_COVERAGE_TEST_NAME

str pytest_userver.plugins.sql_coverage._SQL_COVERAGE_TEST_NAME = 'test_sql_coverage'
protected

Definition at line 14 of file sql_coverage.py.