File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 161
161
162
162
intersphinx_mapping = {
163
163
"python" : ("https://docs.python.org/3" , None ),
164
- "selenium" : ("https://seleniumhq.github.io /selenium/docs/api/py/" , None ),
164
+ "selenium" : ("https://www.selenium.dev /selenium/docs/api/py/" , None ),
165
165
"typing_extensions" : ("https://typing-extensions.readthedocs.io/en/latest/" , None ),
166
166
}
167
167
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ Testcontainers Core
14
14
15
15
.. autoclass :: testcontainers.core.generic.DbContainer
16
16
17
+ .. autoclass :: testcontainers.core.wait_strategies.WaitStrategy
18
+
17
19
.. raw :: html
18
20
19
21
<hr >
Original file line number Diff line number Diff line change @@ -528,14 +528,14 @@ def wait_for(self, url: str) -> "DockerCompose":
528
528
529
529
Example:
530
530
# Simple URL wait (legacy style)
531
- compose.wait_for("http://localhost:8080")
532
-
531
+ compose.wait_for("http://localhost:8080") \
532
+ \
533
533
# For more complex scenarios, use structured wait strategies:
534
- from testcontainers.core.waiting_utils import HttpWaitStrategy, LogMessageWaitStrategy
535
-
536
- compose.waiting_for({
537
- "web": HttpWaitStrategy(8080).for_status_code(200),
538
- "db": LogMessageWaitStrategy("database system is ready to accept connections")
534
+ from testcontainers.core.waiting_utils import HttpWaitStrategy, LogMessageWaitStrategy \
535
+ \
536
+ compose.waiting_for({ \
537
+ "web": HttpWaitStrategy(8080).for_status_code(200), \
538
+ "db": LogMessageWaitStrategy("database system is ready to accept connections") \
539
539
})
540
540
"""
541
541
import time
You can’t perform that action at this time.
0 commit comments