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

Function impala_testinfra_cursor

tests/conftest.py:588–601  ·  view source on GitHub ↗

Return ImpalaCursor object. Used for "tests of tests" for the infra for the query generator, stress test, etc.

()

Source from the content-addressed store, hash-verified

586
587@pytest.fixture
588def impala_testinfra_cursor():
589 """
590 Return ImpalaCursor object. Used for "tests of tests" for the infra for the query
591 generator, stress test, etc.
592 """
593 # This differs from the cursors above, which return direct Impyla cursors. Tests that
594 # use this fixture want to interact with the objects in
595 # tests.comparison.db_connection, which need testing.
596 with ImpalaConnection() as conn:
597 cursor = conn.cursor()
598 try:
599 yield cursor
600 finally:
601 cursor.close()
602
603
604@pytest.fixture(autouse=True, scope='session')

Callers

nothing calls this directly

Calls 3

ImpalaConnectionClass · 0.90
closeMethod · 0.65
cursorMethod · 0.45

Tested by

no test coverage detected