def backend_store(request): if request.config.getoption("--postgresql"): reset_postgresql_testbed() return get_postgresql_url() elif request.node.get_closest_marker("postgresql"): pytest.skip("`Test is postgresql-only") else: return "MOCKED"
def postgresql_url(request): if not request.config.getoption("--postgresql"): pytest.skip("`--postgresql` option not provided") return get_postgresql_url()