File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
testcontainers/generic/providers Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ from .sql_connector import SqlConnectWaitStrategy # noqa: F401
Original file line number Diff line number Diff line change 1+ # This module provides a wait strategy for SQL database connectivity testing using SQLAlchemy.
2+ # It includes handling for transient exceptions and connection retries.
3+
14import logging
25
36from testcontainers .core .waiting_utils import WaitStrategy , WaitStrategyTarget
Original file line number Diff line number Diff line change 11import pytest
22
33from testcontainers .core .exceptions import ContainerStartException
4- from testcontainers .generic .sql_utils import SqlConnectWaitStrategy
54from testcontainers .generic .sql import SqlContainer
5+ from testcontainers .generic .providers .sql_connector import SqlConnectWaitStrategy
66
77
88class SimpleSqlContainer (SqlContainer ):
@@ -153,7 +153,7 @@ def test_container_inheritance(self):
153153 assert hasattr (container , "start" )
154154
155155 def test_additional_transient_errors_list (self ):
156- from testcontainers .generic .sql_utils import ADDITIONAL_TRANSIENT_ERRORS
156+ from testcontainers .generic .providers . sql_connector import ADDITIONAL_TRANSIENT_ERRORS
157157
158158 assert isinstance (ADDITIONAL_TRANSIENT_ERRORS , list )
159159 # List may be empty if SQLAlchemy not available, or contain DBAPIError if it is
You can’t perform that action at this time.
0 commit comments