-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db1bb3f
commit 053e706
Showing
4 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
from pathlib import Path | ||
import re | ||
from unittest import mock | ||
|
||
import pytest | ||
import sqlalchemy | ||
|
||
from testcontainers.core.utils import is_arm | ||
from testcontainers.cockroachdb import CockroachDBContainer | ||
|
||
|
||
def test_docker_run_mysql(): | ||
config = CockroachDBContainer("cockroachdb/cockroach:24.0.1") | ||
config = CockroachDBContainer("cockroachdb/cockroach:v24.1.1") | ||
with config as crdb: | ||
engine = sqlalchemy.create_engine(crdb.get_connection_url()) | ||
with engine.begin() as connection: | ||
result = connection.execute(sqlalchemy.text("select version()")) | ||
for row in result: | ||
assert row[0].startswith("24.0.1") | ||
assert "CockroachDB" in row[0] | ||
assert "v24.1.1" in row[0] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters