userver: /data/code/userver/libraries/easy/samples/2_key_value/testsuite/conftest.py Source File
Loading...
Searching...
No Matches
conftest.py
1import pytest
2
3from testsuite.databases.pgsql import discover
4
5pytest_plugins = ['pytest_userver.plugins.postgresql']
6
7
8@pytest.fixture(scope='session')
9def pgsql_local(db_dump_schema_path, pgsql_local_create):
10 databases = discover.find_schemas('admin', [db_dump_schema_path])
11 return pgsql_local_create(list(databases.values()))