diff --git a/modules/mysql/testcontainers/mysql/__init__.py b/modules/mysql/testcontainers/mysql/__init__.py index 52ea1e97..e45aa12a 100644 --- a/modules/mysql/testcontainers/mysql/__init__.py +++ b/modules/mysql/testcontainers/mysql/__init__.py @@ -108,7 +108,7 @@ def _connect(self) -> None: def get_connection_url(self) -> str: dialect = "mysql" - if self.dialect is None: + if self.dialect is not None: dialect = f"mysql+{self.dialect}" return super()._create_connection_url(