MCPcopy Create free account
hub / github.com/apache/impala / postgresql_cursor

Function postgresql_cursor

tests/comparison/tests/test_cursor.py:61–70  ·  view source on GitHub ↗

Yield a PostgresqlCursor object needed for test infra system tests.

()

Source from the content-addressed store, hash-verified

59
60@pytest.fixture
61def postgresql_cursor():
62 """
63 Yield a PostgresqlCursor object needed for test infra system tests.
64 """
65 with PostgresqlConnection() as conn:
66 cursor = conn.cursor()
67 try:
68 yield cursor
69 finally:
70 cursor.close()
71
72
73@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

closeMethod · 0.65
cursorMethod · 0.45

Tested by

no test coverage detected