@@ -714,7 +714,7 @@ def test_autocommit_setter_wraps_database_error(self, mock_session_class):
714714 server_error = DatabaseError (
715715 "AUTOCOMMIT_SET_DURING_ACTIVE_TRANSACTION" ,
716716 context = {"sql_state" : "25000" },
717- host_url = "test-session-id " ,
717+ host_url = "test-host " ,
718718 )
719719 mock_cursor .execute .side_effect = server_error
720720
@@ -737,7 +737,7 @@ def test_autocommit_setter_preserves_exception_chain(self, mock_session_class):
737737
738738 mock_cursor = Mock ()
739739 original_error = DatabaseError (
740- "Original error" , host_url = "test-session-id "
740+ "Original error" , host_url = "test-host "
741741 )
742742 mock_cursor .execute .side_effect = original_error
743743
@@ -772,7 +772,7 @@ def test_commit_wraps_database_error(self, mock_session_class):
772772 server_error = DatabaseError (
773773 "MULTI_STATEMENT_TRANSACTION_NO_ACTIVE_TRANSACTION" ,
774774 context = {"sql_state" : "25000" },
775- host_url = "test-session-id " ,
775+ host_url = "test-host " ,
776776 )
777777 mock_cursor .execute .side_effect = server_error
778778
@@ -822,7 +822,7 @@ def test_rollback_wraps_database_error(self, mock_session_class):
822822 server_error = DatabaseError (
823823 "Unexpected rollback error" ,
824824 context = {"sql_state" : "HY000" },
825- host_url = "test-session-id " ,
825+ host_url = "test-host " ,
826826 )
827827 mock_cursor .execute .side_effect = server_error
828828
0 commit comments