Skip to content

Commit 2216505

Browse files
committed
Fix test
1 parent 62f8588 commit 2216505

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/test_discovery.py

Lines changed: 2 additions & 2 deletions
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')),
@@ -482,7 +482,7 @@ def test_catalog(self):
482482
('properties', 'date_range') : {'inclusion': 'available', 'sql-datatype' : 'daterange', 'selected-by-default' : True}})
483483

484484

485-
self.assertEqual({'properties': {'id': {'type': ['null', 'integer']},
485+
self.assertEqual({'properties': {'id': {'maximum': 2147483647, 'minimum': -2147483648, 'type': ['integer']},
486486
'date_range': {'type': ['null', 'string']}},
487487
'type': 'object',
488488
'definitions' : BASE_RECURSIVE_SCHEMAS},

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)