Fix the test cases related to connection #8
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactored part of the code that obtained attributes using parameter_status and fixed the test cases related to connection.
Changes Made
backend_pid
,timezone
andserver_version
in the PGconn classseverity_nonlocalized
attribute of class Diagnostic due to libpq version is incompatibletest_connection.py
andtest_connection_async.py
test_set_transaction_param_implicit
test_connection.py
andtest_connection_async.py
test_right_exception_on_session_timeout
test_connection.py
andtest_connection_async.py
test_right_exception_on_server_disconnect
test_connection.py
andtest_connection_async.py
test_context_inerror_rollback_no_clobber
test_connection_info.py
test_get_params
test_dsn
test_get_params_env
test_dsn_env
test_no_password
test_dsn_no_password