Skip to content

Commit 3c5abc7

Browse files
committed
Fix test
1 parent 62f8588 commit 3c5abc7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/test_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def test_catalog(self):
473473

474474
with get_test_connection() as conn:
475475
with conn.cursor(cursor_factory=psycopg2.extras.DictCursor) as cur:
476-
cur.execute("""INSERT INTO "CHICKEN TIMES" (our_int_array_pk, our_string_array) VALUES ('{{1,2,3},{4,5,6}}', '{{"a","b","c"}}' )""")
476+
cur.execute("""INSERT INTO "CHICKEN TIMES" (id, date_range) VALUES ('1', '[2010-01-01, 2010-01-10)' )""")
477477
cur.execute("""SELECT * FROM "CHICKEN TIMES" """)
478478

479479
self.assertEqual(metadata.to_map(stream_dict.get('metadata')),

tests/test_unsupported_pk.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def setUp(self):
2828
{"name": "circle_col", "type": "circle"},
2929
{"name": "xml_col", "type": "xml"},
3030
{"name": "composite_col", "type": "person_composite"},
31-
{"name": "int_range_col", "type": "int4range"},
3231
],
3332
"name": Unsupported.table_name}
3433
with get_test_connection() as conn:
@@ -53,7 +52,6 @@ def test_catalog(self):
5352
('properties', 'bit_string_col'): {'sql-datatype': 'bit(5)', 'selected-by-default': False, 'inclusion': 'unsupported'},
5453
('properties', 'line_col'): {'sql-datatype': 'line', 'selected-by-default': False, 'inclusion': 'unsupported'},
5554
('properties', 'xml_col'): {'sql-datatype': 'xml', 'selected-by-default': False, 'inclusion': 'unsupported'},
56-
('properties', 'int_range_col'): {'sql-datatype': 'int4range', 'selected-by-default': False, 'inclusion': 'unsupported'},
5755
('properties', 'circle_col'): {'sql-datatype': 'circle', 'selected-by-default': False, 'inclusion': 'unsupported'},
5856
('properties', 'polygon_col'): {'sql-datatype': 'polygon', 'selected-by-default': False, 'inclusion': 'unsupported'},
5957
('properties', 'box_col'): {'sql-datatype': 'box', 'selected-by-default': False, 'inclusion': 'unsupported'},

0 commit comments

Comments
 (0)