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(service_source_dir, pgsql_local_create):
10 databases = discover.find_schemas(
11 'auth', [service_source_dir.joinpath('schemas/postgresql')],
12 )
13 return pgsql_local_create(list(databases.values()))