userver: pytest_userver.plugins.mongo 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.mongo Namespace Reference

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

Functions

 userver_mongo_config (mongo_connection_info)
 Returns a function that adjusts the static configuration file for the testsuite.
 

Variables

list pytest_plugins
 
list USERVER_CONFIG_HOOKS = ['userver_mongo_config']
 

Detailed Description

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

Variable Documentation

◆ pytest_plugins

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

Definition at line 11 of file mongo.py.

◆ USERVER_CONFIG_HOOKS

list pytest_userver.plugins.mongo.USERVER_CONFIG_HOOKS = ['userver_mongo_config']

Definition at line 17 of file mongo.py.