MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_connection_options

Method test_connection_options

test/lang/python/smoketest.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class SmokeTest(unittest.TestCase):
20 def test_connection_options(self) -> None:
21 with psycopg.connect(MATERIALIZED_URL + "?options=--cluster%3Db") as conn:
22 with conn.cursor() as cur:
23 cur.execute("SHOW cluster")
24 row = cur.fetchone()
25 self.assertEqual(row, ("b",))
26
27 def test_custom_types(self) -> None:
28 with psycopg.connect(MATERIALIZED_URL, autocommit=True) as conn:

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
connectMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected