userver: pytest_userver.plugins.sql_coverage Namespace Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.sql_coverage Namespace Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Plugin that imports the required fixtures for checking SQL/YQL coverage.

Classes

class  Coverage
 Contains data about the current coverage of statements. More...
 

Functions

 on_uncovered ()
 Will be called when the coverage is incomplete.
 
 sql_coverage (sql_files)
 
 sql_statement_hook (testpoint, sql_coverage)
 Hook that accepts requests from the testpoint.
 
 yql_statement_hook (testpoint, sql_coverage)
 Hook that accepts requests from the testpoint.
 
 pytest_collection_modifyitems (config, items)
 

Variables

str _SQL_COVERAGE_TEST_NAME = 'test_sql_coverage'
 

Function Documentation

◆ on_uncovered()

pytest_userver.plugins.sql_coverage.on_uncovered ( )

Will be called when the coverage is incomplete.

Definition at line 15 of file sql_coverage.py.

◆ pytest_collection_modifyitems()

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

Definition at line 81 of file sql_coverage.py.

◆ sql_coverage()

pytest_userver.plugins.sql_coverage.sql_coverage ( sql_files)

Definition at line 50 of file sql_coverage.py.

◆ sql_statement_hook()

pytest_userver.plugins.sql_coverage.sql_statement_hook ( testpoint,
sql_coverage )

Hook that accepts requests from the testpoint.

Definition at line 55 of file sql_coverage.py.

◆ yql_statement_hook()

pytest_userver.plugins.sql_coverage.yql_statement_hook ( testpoint,
sql_coverage )

Hook that accepts requests from the testpoint.

Definition at line 68 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 11 of file sql_coverage.py.