diff options
author | Darik Gamble <darik.gamble.spam@gmail.com> | 2015-10-21 17:10:30 -0400 |
---|---|---|
committer | Darik Gamble <darik.gamble@gmail.com> | 2015-10-28 10:58:25 -0400 |
commit | c9b55ba12e2a87cb6b15bd9a009342aece9c3a18 (patch) | |
tree | 61024289a9fbdb32c430995b16b064132b260c1c /tests/conftest.py | |
parent | 258c08dfa121d1246bc6b6dd79fbe2870c42c853 (diff) |
Fix pgexecute tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 0cff635a..3c7d76dc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -24,3 +24,10 @@ def cursor(connection): def executor(connection): return pgcli.pgexecute.PGExecute(database='_test_db', user=POSTGRES_USER, host=POSTGRES_HOST, password=None, port=None, dsn=None) + + +@pytest.fixture +def exception_formatter(): + return lambda e: (None, None, None, str(e)) + + |