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
feat: move MariaDB to clientless validation (#126)
## Summary
- remove pytest-databases runtime/test dependency on the MariaDB Python client
- keep `pytest-databases[mariadb]` as an empty compatibility extra
- validate MariaDB availability and tests with the container-bundled `mariadb` CLI
- update MariaDB docs to describe user-owned clients and service-only fixtures
This also includes the previously stacked PRs for #127#128
Copy file name to clipboardExpand all lines: docs/supported-databases/mariadb.rst
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@ Integration with `MariaDB <https://mariadb.org>`_, a community-developed, commer
6
6
Installation
7
7
------------
8
8
9
-
MariaDB support is built-in and does not require any additional Python client libraries for basic service management. However, to connect to the database from your tests, you should install your preferred MariaDB client (e.g., `mariadb`).
9
+
The fixture provides a running MariaDB service and validates availability with the container's bundled tools. Use the
10
+
service attributes with the MariaDB client, ORM, or application configuration you normally use.
# Create your own connection using the service fixture attributes
24
24
with mariadb.connect(
25
25
host=mariadb_service.host,
26
26
port=mariadb_service.port,
@@ -36,16 +36,17 @@ Available Fixtures
36
36
------------------
37
37
38
38
* ``mariadb_service``: A fixture that provides a MariaDB service (11.4 LTS).
39
+
* ``mariadb_user``: The application user configured in the container.
40
+
* ``mariadb_password``: The application user password configured in the container.
41
+
* ``mariadb_root_password``: The root password configured in the container.
42
+
* ``mariadb_database``: The initial database configured in the container.
39
43
40
44
The following version-specific fixtures are also available:
41
45
42
46
* ``mariadb_113_service``: MariaDB 11.3
43
47
* ``mariadb_114_service``: MariaDB 11.4 LTS
44
48
* ``mariadb_122_service``: MariaDB 12.2 Rolling
45
49
46
-
.. note::
47
-
The connection fixtures (e.g., ``mariadb_connection``, ``mariadb_114_connection``) are deprecated and will be removed in a future release. Users are encouraged to create their own connections as shown in the example above.
Copy file name to clipboardExpand all lines: docs/supported-databases/mysql.rst
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@ Integration with `MySQL <https://www.mysql.com/>`_
6
6
Installation
7
7
------------
8
8
9
-
MySQL support is built-in and does not require any additional Python client libraries for basic service management. However, to connect to the database from your tests, you should install your preferred MySQL client (e.g., `mysql-connector-python`).
9
+
The fixture provides a running MySQL service and validates availability with the container's bundled tools. Use the
10
+
service attributes with the MySQL client, ORM, or application configuration you normally use.
# Create your own connection using the service fixture attributes
24
24
with mysql.connector.connect(
25
25
host=mysql_service.host,
26
26
port=mysql_service.port,
@@ -36,6 +36,10 @@ Available Fixtures
36
36
------------------
37
37
38
38
* ``mysql_service``: A fixture that provides a MySQL service (8.4 LTS).
39
+
* ``mysql_user``: The application user configured in the container.
40
+
* ``mysql_password``: The application user password configured in the container.
41
+
* ``mysql_root_password``: The root password configured in the container.
42
+
* ``mysql_database``: The initial database configured in the container.
39
43
40
44
The following version-specific fixtures are also available:
41
45
@@ -45,9 +49,6 @@ The following version-specific fixtures are also available:
45
49
* ``mysql_84_service``: MySQL 8.4 LTS
46
50
* ``mysql_96_service``: MySQL 9.6 Innovation
47
51
48
-
.. note::
49
-
The connection fixtures (e.g., ``mysql_connection``, ``mysql_84_connection``) are deprecated and will be removed in a future release. Users are encouraged to create their own connections as shown in the example above.
0 commit comments