import pytest


def pytest_addoption(parser):
    parser.addoption("--postgres", action="store", default=None,
                     help="DSN for PostgreSQL connection")


@pytest.fixture(scope="session")
def postgres_opt(request):
    return request.config.getoption("--postgres")


