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

Detailed Description

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

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

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.