Skip to content

tests/unit/tests.py has broken tests and does not run in CI #317

@jakewski

Description

@jakewski

pretty much the title

FAILED tests/unit/tests.py::ClientTestSuite::test_auth_args - ValueError: too many values to unpack (expected 4)
FAILED tests/unit/tests.py::ClientTestSuite::test_authtoken_passthrough - AssertionError: ('Authorization', 'Bearer tok') not found in [('User-Agent', 'PyDatabricksSqlConnector/3.0.1')]
FAILED tests/unit/tests.py::ClientTestSuite::test_close_uses_the_correct_session_id - AttributeError: 'bytes' object has no attribute 'sessionHandle'
FAILED tests/unit/tests.py::ClientTestSuite::test_closing_connection_closes_commands - databricks.sql.exc.Error: You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands
FAILED tests/unit/tests.py::ClientTestSuite::test_context_manager_closes_connection - AttributeError: 'bytes' object has no attribute 'sessionHandle'
FAILED tests/unit/tests.py::ClientTestSuite::test_cursor_keeps_connection_alive - AttributeError: 'bytes' object has no attribute 'sessionHandle'
FAILED tests/unit/tests.py::ClientTestSuite::test_disable_pandas_respected - databricks.sql.exc.Error: You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands
FAILED tests/unit/tests.py::ClientTestSuite::test_execute_parameter_passthrough - databricks.sql.exc.Error: You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands
FAILED tests/unit/tests.py::ClientTestSuite::test_executemany_parameter_passhthrough_and_uses_last_result_set - databricks.sql.exc.Error: You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands
FAILED tests/unit/tests.py::ClientTestSuite::test_executing_multiple_commands_uses_the_most_recent_command - databricks.sql.exc.Error: You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands
FAILED tests/unit/tests.py::ClientTestSuite::test_finalizer_closes_abandoned_connection - AttributeError: 'bytes' object has no attribute 'sessionHandle'
FAILED tests/unit/tests.py::ClientTestSuite::test_row_number_respected - databricks.sql.exc.Error: You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands
FAILED tests/unit/tests.py::ClientTestSuite::test_staging_operation_response_is_handled - AssertionError: expected call not found.
===================================================================================== 13 failed, 96 passed in 7.48s =====================================================================================
jakub@jakub:~/databricks-sql-python$ ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions