Return ImpalaCursor object. Used for "tests of tests" for the infra for the query generator, stress test, etc.
()
| 586 | |
| 587 | @pytest.fixture |
| 588 | def 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') |
nothing calls this directly
no test coverage detected