Ejemplo n.º 1
0
 def __init__(self, **kwargs):
     self._engine = None
     # Connection timeout management
     self._max_attempts = ProjectConfig.connection_max_attempts()
     self._timeout = ProjectConfig.connection_timeout()
     self._timeout_factor = self._timeout
     super().__init__(**kwargs)
Ejemplo n.º 2
0
 def test_connection_timeout(self):
     self.assertEqual(3, ProjectConfig.connection_timeout())