mirror of https://github.com/dbcli/pgcli
Add a test for the unicode handling in unknown types.
This commit is contained in:
parent
3d501471c8
commit
cf0f33ff01
|
@ -1,7 +1,9 @@
|
|||
# coding=UTF-8
|
||||
|
||||
import pytest
|
||||
import psycopg2
|
||||
from textwrap import dedent
|
||||
from utils import *
|
||||
from utils import run, dbtest
|
||||
|
||||
@dbtest
|
||||
def test_conn(executor):
|
||||
|
@ -91,3 +93,7 @@ def test_bytea_field_support_in_output(executor):
|
|||
"insert into binarydata (c) values (decode('DEADBEEF', 'hex'))")
|
||||
|
||||
assert u'\\xdeadbeef' in run(executor, "select * from binarydata", join=True)
|
||||
|
||||
@dbtest
|
||||
def test_unicode_support_in_unknown_type(executor):
|
||||
assert u'日本語' in run(executor, "SELECT '日本語' AS japanese;", join=True)
|
||||
|
|
Loading…
Reference in New Issue