You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- move Dolt tests to use the bundled container CLI instead of mysql.connector
- expose Dolt credential/database fixtures for user overrides
- pre-pull the Dolt image in CI so fixture startup does not pull it lazily
Includes the stacked PR #129
Copy file name to clipboardExpand all lines: docs/supported-databases/dolt.rst
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ Dolt is a MySQL-compatible database that provides Git-like versioning for your d
8
8
Installation
9
9
------------
10
10
11
-
Dolt support is built-in and does not require any additional Python client libraries for basic service management. Since Dolt is MySQL-compatible, you can connect to the database from your tests using your preferred MySQL client (e.g., ``mysql-connector-python``).
11
+
The fixture provides a running Dolt SQL service and validates availability with the container's bundled tools. Since
12
+
Dolt is MySQL-compatible, use the service attributes with the MySQL client, ORM, or application configuration you
13
+
normally use.
12
14
13
15
Usage Example
14
16
-------------
@@ -22,7 +24,6 @@ Usage Example
22
24
pytest_plugins = ["pytest_databases.docker.dolt"]
23
25
24
26
deftest(dolt_service: DoltService) -> None:
25
-
# Create your own connection using the service fixture attributes
26
27
with mysql.connector.connect(
27
28
host=dolt_service.host,
28
29
port=dolt_service.port,
@@ -38,6 +39,10 @@ Available Fixtures
38
39
------------------
39
40
40
41
* ``dolt_service``: A fixture that provides a Dolt service (latest).
42
+
* ``dolt_user``: The application user configured in the container.
43
+
* ``dolt_password``: The application user password configured in the container.
44
+
* ``dolt_root_password``: The root password configured in the container.
45
+
* ``dolt_database``: The initial database configured in the container.
0 commit comments