@@ -21,17 +21,24 @@ def _create_mock_settings(self, **overrides):
2121 "sync_driver" : "oracle+oracledb" ,
2222 "autoflush" : False ,
2323 "expire_on_commit" : False ,
24- "autocommit" : True ,
24+ "autocommit" : False ,
2525 "connection_timeout" : 30 ,
2626 "pool_recycle" : 3600 ,
2727 "pool_size" : 10 ,
2828 "max_overflow" : 20 ,
2929 "ssl_enabled" : False ,
3030 "ssl_wallet_path" : None ,
31- "enable_retry" : True ,
32- "max_retries" : 3 ,
33- "initial_retry_delay" : 1.0 ,
34- "max_retry_delay" : 30.0 ,
31+ # Connection retry settings
32+ "conn_enable_retry" : True ,
33+ "conn_max_retries" : 3 ,
34+ "conn_initial_retry_delay" : 1.0 ,
35+ "conn_max_retry_delay" : 30.0 ,
36+ # Operation retry settings
37+ "op_enable_retry" : True ,
38+ "op_max_retries" : 3 ,
39+ "op_initial_retry_delay" : 0.5 ,
40+ "op_max_retry_delay" : 10.0 ,
41+ "op_jitter" : 0.1 ,
3542 }
3643 defaults .update (overrides )
3744 for key , value in defaults .items ():
@@ -220,7 +227,7 @@ def test_all_parameters_defaults(self, mock_get_settings):
220227
221228 assert oracle ._session_config .autoflush == False
222229 assert oracle ._session_config .expire_on_commit == False
223- assert oracle ._session_config .autocommit == True
230+ assert oracle ._session_config .autocommit == False
224231 assert oracle ._pool_config .connection_timeout == 30
225232
226233 @patch ('ddcDatabases.oracle.get_oracle_settings' )
0 commit comments