8000 Fix the test cases related to connection by 5xuanwen · Pull Request #8 · HuaweiCloudDeveloper/gaussdb-python · GitHub
[go: up one dir, main page]

Skip to content

Fix the test cases related to connection #8

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

Merged
merged 17 commits into from
May 28, 2025

Conversation

5xuanwen
Copy link
Collaborator

This PR refactored part of the code that obtained attributes using parameter_status and fixed the test cases related to connection.

Changes Made

  • Refactor the ways to obtain the attributes of backend_pid, timezone and server_version in the PGconn class
  • Raise an error "NotSupportedError" for the severity_nonlocalized attribute of class Diagnostic due to libpq version is incompatible
  • Skip the test cases of SERIALIZABLE isolation level in test_connection.py and test_connection_async.py
    • test_set_transaction_param_implicit
  • Use idle_in_transaction_timeout instead of idle_in_transaction_session_timeout and add gaussdb_skip due to no error message is returned in test_connection.py and test_connection_async.py
    • test_right_exception_on_session_timeout
  • Change the error type of raise returned by GaussDB to OperationalError in test_connection.py and test_connection_async.py
    • test_right_exception_on_server_disconnect
  • Use bigint instead of int of backend_pid type in test_connection.py and test_connection_async.py
    • test_context_inerror_rollback_no_clobber
  • Add gaussdb_skip due to method PGconn.info is not implemented in test_connection_info.py
    • test_get_params
    • test_dsn
    • test_get_params_env
    • test_dsn_env
    • test_no_password
    • test_dsn_no_password

5xuanwen added 17 commits May 28, 2025 17:25
…session_timeout and error result not returned in GaussDB
…session_timeout and error result not returned in GaussDB
@5xuanwen 5xuanwen merged commit d3260b0 into HuaweiCloudDeveloper:master May 28, 2025
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 this pull request may close these issues.

1 participant
0