# Copyright (c) Matt Haggard.
# See LICENSE for details.

from twisted.trial.unittest import SkipTest

from norm.uri import mkConnStr, parseURI
import os


postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None)
skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this '
                 'postgres test')
if postgres_url:
    skip_postgres = ''


def postgresConnStr():
    if not postgres_url:
        raise SkipTest(skip_postgres)
    return mkConnStr(parseURI(postgres_url))
d22f204e5f70d533be37654e159b404d090bfa8a
<mask token>


def postgresConnStr():
    if not postgres_url:
        raise SkipTest(skip_postgres)
    return mkConnStr(parseURI(postgres_url))

<mask token>
if postgres_url:
    skip_postgres = ''


def postgresConnStr():
    if not postgres_url:
        raise SkipTest(skip_postgres)
    return mkConnStr(parseURI(postgres_url))

<mask token>
postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None)
skip_postgres = (
    'You must define NORM_POSTGRESQL_URI in order to run this postgres test')
if postgres_url:
    skip_postgres = ''


def postgresConnStr():
    if not postgres_url:
        raise SkipTest(skip_postgres)
    return mkConnStr(parseURI(postgres_url))

from twisted.trial.unittest import SkipTest
from norm.uri import mkConnStr, parseURI
import os
postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None)
skip_postgres = (
    'You must define NORM_POSTGRESQL_URI in order to run this postgres test')
if postgres_url:
    skip_postgres = ''


def postgresConnStr():
    if not postgres_url:
        raise SkipTest(skip_postgres)
    return mkConnStr(parseURI(postgres_url))

# Copyright (c) Matt Haggard.
# See LICENSE for details.

from twisted.trial.unittest import SkipTest

from norm.uri import mkConnStr, parseURI
import os


postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None)
skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this '
                 'postgres test')
if postgres_url:
    skip_postgres = ''


def postgresConnStr():
    if not postgres_url:
        raise SkipTest(skip_postgres)
    return mkConnStr(parseURI(postgres_url))