Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
nightblure committed Nov 19, 2024
1 parent 9ff9364 commit 63948cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mysql/testcontainers/mysql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MySqlContainer(DbContainer):
>>> import sqlalchemy
>>> from testcontainers.mysql import MySqlContainer
>>> with MySqlContainer('mysql:5.7.17') as mysql:
>>> with MySqlContainer("mysql:5.7.17", dialect="pymysql") as mysql:
... engine = sqlalchemy.create_engine(mysql.get_connection_url())
... with engine.begin() as connection:
... result = connection.execute(sqlalchemy.text("select version()"))
Expand Down

0 comments on commit 63948cb

Please sign in to comment.