Skip to content

Commit 82a3b2c

Browse files
fix docs build
1 parent ee4f335 commit 82a3b2c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161

162162
intersphinx_mapping = {
163163
"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),
165165
"typing_extensions": ("https://typing-extensions.readthedocs.io/en/latest/", None),
166166
}
167167

core/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Testcontainers Core
1414

1515
.. autoclass:: testcontainers.core.generic.DbContainer
1616

17+
.. autoclass:: testcontainers.core.wait_strategies.WaitStrategy
18+
1719
.. raw:: html
1820

1921
<hr>

core/testcontainers/compose/compose.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -528,14 +528,14 @@ def wait_for(self, url: str) -> "DockerCompose":
528528
529529
Example:
530530
# Simple URL wait (legacy style)
531-
compose.wait_for("http://localhost:8080")
532-
531+
compose.wait_for("http://localhost:8080") \
532+
\
533533
# 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") \
539539
})
540540
"""
541541
import time

0 commit comments

Comments
 (0)