(self)
| 18 | |
| 19 | class 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: |