Skip to content

Commit b81e3a1

Browse files
author
Pavlo
committed
Disable test in http driver
1 parent e57f796 commit b81e3a1

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

singlestoredb/tests/test_connection.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,16 +1358,17 @@ def test_results_format(self):
13581358
assert type(out[0]) is dict, type(out)
13591359

13601360
def test_multi_statements(self):
1361-
with s2.connect(database=type(self).dbname, multi_statements=True) as conn:
1362-
with conn.cursor() as cur:
1363-
cur.execute('SELECT 1; SELECT 2;')
1364-
self.assertEqual([(1,)], list(cur))
1361+
if self.conn.driver not in ['http', 'https']:
1362+
with s2.connect(database=type(self).dbname, multi_statements=True) as conn:
1363+
with conn.cursor() as cur:
1364+
cur.execute('SELECT 1; SELECT 2;')
1365+
self.assertEqual([(1,)], list(cur))
13651366

1366-
r = cur.nextset()
1367-
self.assertTrue(r)
1367+
r = cur.nextset()
1368+
self.assertTrue(r)
13681369

1369-
self.assertEqual([(2,)], list(cur))
1370-
self.assertIsNone(cur.nextset())
1370+
self.assertEqual([(2,)], list(cur))
1371+
self.assertIsNone(cur.nextset())
13711372

13721373
def test_show_accessors(self):
13731374
out = self.conn.show.columns('data')

0 commit comments

Comments
 (0)