userver: samples/mongo_service/testsuite/conftest.py
Loading...
Searching...
No Matches
samples/mongo_service/testsuite/conftest.py
1# /// [mongodb settings]
2import pytest
3
4pytest_plugins = ['pytest_userver.plugins.mongo']
5
6MONGO_COLLECTIONS = {
7 'translations': {
8 'settings': {
9 'collection': 'translations',
10 'connection': 'admin',
11 'database': 'admin',
12 },
13 'indexes': [],
14 },
15}
16
17
18@pytest.fixture(scope='session')
19def mongodb_settings():
20 return MONGO_COLLECTIONS
21 # /// [mongodb settings]