Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jakewski opened this issue Jan 12, 2024 · 1 comment · Fixed by #331
Closed

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

jakewski opened this issue Jan 12, 2024 · 1 comment · Fixed by #331

Comments

@jakewski
Copy link

jakewski commented Jan 12, 2024

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$ ```
@susodapop
Copy link
Contributor

Good catch! Pull request fixing this incoming shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants