userver: pytest_userver.plugins.postgresql Namespace Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.postgresql Namespace Reference

Plugin that imports the required fixtures to start the database and adjusts the PostgreSQL "dbconnection" static config value. More...

Functions

 userver_pg_config (pgsql_local)
 Returns a function that adjusts the static configuration file for the testsuite.
 

Variables

list pytest_plugins
 
list USERVER_CONFIG_HOOKS = ['userver_pg_config']
 

Detailed Description

Plugin that imports the required fixtures to start the database and adjusts the PostgreSQL "dbconnection" static config value.

Variable Documentation

◆ pytest_plugins

list pytest_userver.plugins.postgresql.pytest_plugins
Initial value:
1= [
2 'testsuite.databases.pgsql.pytest_plugin',
3 'pytest_userver.plugins.core',
4]

Definition at line 9 of file postgresql.py.

◆ USERVER_CONFIG_HOOKS

list pytest_userver.plugins.postgresql.USERVER_CONFIG_HOOKS = ['userver_pg_config']

Definition at line 15 of file postgresql.py.