pytest-databases 0.18.0__tar.gz → 0.19.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/workflows/ci.yaml +1 -1
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.pre-commit-config.yaml +1 -1
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/PKG-INFO +1 -1
- pytest_databases-0.19.0/docs/changelog.rst +497 -0
- pytest_databases-0.19.0/docs/supported-databases/postgres.rst +128 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/rustfs.rst +11 -4
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/pyproject.toml +2 -2
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/scripts/build_docs.py +4 -2
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/_service.py +20 -14
- pytest_databases-0.19.0/src/pytest_databases/docker/postgres.py +1231 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/rustfs.py +2 -2
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_postgres.py +63 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_rustfs.py +11 -0
- pytest_databases-0.19.0/tests/test_service_host_port.py +90 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/uv.lock +1289 -842
- pytest_databases-0.18.0/docs/changelog.rst +0 -4
- pytest_databases-0.18.0/docs/supported-databases/postgres.rst +0 -81
- pytest_databases-0.18.0/src/pytest_databases/docker/postgres.py +0 -561
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/CODEOWNERS +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/dependabot.yaml +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/workflows/cd.yaml +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/workflows/docs.yml +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/workflows/pr-title.yaml +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.github/workflows/release.yaml +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.gitignore +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.sourcery.yaml +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.vscode/launch.json +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/.vscode/settings.json +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/CODEOWNERS +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/CONTRIBUTING.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/LICENSE +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/Makefile +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/README.md +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/.gitignore +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/__init__.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/_static/.gitkeep +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/_static/custom.css +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/_static/logo.svg +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/conf.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/contribution-guide.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/getting-started/basic-usage.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/getting-started/configuration.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/getting-started/enabling-plugins.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/getting-started/index.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/getting-started/installation.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/getting-started/next-steps.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/index.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/azure_blob_storage.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/bigquery.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/cockroachdb.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/dolt.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/elasticsearch.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/gizmosql.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/index.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/mariadb.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/minio.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/mongodb.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/mysql.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/oracle.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/redis.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/spanner.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/sqlserver.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/valkey.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/docs/supported-databases/yugabyte.rst +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/scripts/__init__.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/scripts/convert_docs.sh +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/scripts/install-hatch.sh +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/sonar-project.properties +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/__init__.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/__metadata__.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/__init__.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/azure_blob.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/bigquery.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/cockroachdb.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/dolt.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/elastic_search.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/gizmosql.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/mariadb.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/minio.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/mongodb.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/mssql.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/mysql.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/oracle.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/redis.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/spanner.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/valkey.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/docker/yugabyte.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/helpers.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/py.typed +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/src/pytest_databases/types.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/__init__.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/conftest.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_azure_blob.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_bigquery.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_cockroachdb.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_dolt.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_elasticsearch.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_gizmosql.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_mariadb.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_minio.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_mongodb.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_mssql.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_mysql.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_oracle.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_redis.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_rustfs_config.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_spanner.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_valkey.py +0 -0
- {pytest_databases-0.18.0 → pytest_databases-0.19.0}/tests/test_yugabyte.py +0 -0
|
@@ -99,7 +99,7 @@ jobs:
|
|
|
99
99
|
|
|
100
100
|
- if: matrix.python-version == '3.12'
|
|
101
101
|
name: Upload coverage reports to Codecov
|
|
102
|
-
uses: codecov/codecov-action@v6.0.
|
|
102
|
+
uses: codecov/codecov-action@v6.0.1
|
|
103
103
|
with:
|
|
104
104
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
105
105
|
slug: litestar-org/pytest-databases
|
|
@@ -19,7 +19,7 @@ repos:
|
|
|
19
19
|
|
|
20
20
|
# Ruff replaces black, flake8, autoflake and isort
|
|
21
21
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
22
|
-
rev: "v0.15.
|
|
22
|
+
rev: "v0.15.14" # make sure this is always consistent with hatch configs
|
|
23
23
|
hooks:
|
|
24
24
|
- id: ruff
|
|
25
25
|
args: [--config, ./pyproject.toml]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-databases
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.19.0
|
|
4
4
|
Summary: Reusable database fixtures for any and all databases.
|
|
5
5
|
Project-URL: Documentation, https://github.com/litestar-org/pytest-databases#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/litestar-org/pytest-databases/issues
|
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
Changelog
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
All notable changes to this project will be documented in this file.
|
|
5
|
+
|
|
6
|
+
0.19.0 (2026-05-23)
|
|
7
|
+
-------------------
|
|
8
|
+
|
|
9
|
+
Added
|
|
10
|
+
~~~~~
|
|
11
|
+
|
|
12
|
+
* ``host_port`` kwarg on ``DockerService.run`` that pins a specific host-side
|
|
13
|
+
port for the container instead of letting Docker pick one. Closes
|
|
14
|
+
`gh-131 <https://github.com/litestar-org/pytest-databases/issues/131>`_.
|
|
15
|
+
* Per-version ``*_port`` fixtures for every postgres-family service
|
|
16
|
+
(``postgres_NN_port``, ``pgvector_NN_port``, ``paradedb_NN_port``,
|
|
17
|
+
``alloydb_omni_NN_port``) that read a matching ``*_PORT`` env var.
|
|
18
|
+
* Per-version pgvector services: ``pgvector_13_service`` through
|
|
19
|
+
``pgvector_18_service`` (plus matching ``_connection`` fixtures).
|
|
20
|
+
* Per-version ParadeDB services: ``paradedb_15_service`` through
|
|
21
|
+
``paradedb_18_service`` (plus matching ``_connection`` fixtures).
|
|
22
|
+
* Per-version AlloyDB Omni services: ``alloydb_omni_15_service`` through
|
|
23
|
+
``alloydb_omni_17_service`` (plus matching ``_connection`` fixtures).
|
|
24
|
+
|
|
25
|
+
Changed
|
|
26
|
+
~~~~~~~
|
|
27
|
+
|
|
28
|
+
* Bumped default ``pgvector_image`` from ``pgvector/pgvector:pg15`` to
|
|
29
|
+
``pgvector/pgvector:pg18``.
|
|
30
|
+
* Bumped default ``paradedb_image`` from ``paradedb/paradedb:0.21.5-pg16`` to
|
|
31
|
+
``paradedb/paradedb:latest-pg18``.
|
|
32
|
+
* Bumped default ``alloydb_omni_image`` from ``google/alloydbomni:16`` to
|
|
33
|
+
``google/alloydbomni:17``.
|
|
34
|
+
* RustFS credential defaults changed from ``rustfsadmin`` /
|
|
35
|
+
``rustfsadmin`` (which current ``rustfs/rustfs:latest`` images reject as
|
|
36
|
+
"insecure default credentials") to ``pytest-databases-rustfs`` /
|
|
37
|
+
``pytest-databases-rustfs-secret``. Closes
|
|
38
|
+
`gh-132 <https://github.com/litestar-org/pytest-databases/issues/132>`_.
|
|
39
|
+
|
|
40
|
+
Fixed
|
|
41
|
+
~~~~~
|
|
42
|
+
|
|
43
|
+
* ``alloydb_omni_service`` was using the ``pgvector_image`` fixture instead of
|
|
44
|
+
``alloydb_omni_image``; ``alloydb_omni_connection`` was wired to
|
|
45
|
+
``pgvector_service`` instead of ``alloydb_omni_service``. Both fixtures now
|
|
46
|
+
use their own image / service.
|
|
47
|
+
* ``DockerService.run``'s ``contextmanager`` now wraps its ``yield`` in
|
|
48
|
+
``try/finally`` so transient teardown always runs even when the test body
|
|
49
|
+
raises (previously could leak containers).
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
0.18.0 (2026-05-12)
|
|
53
|
+
-------------------
|
|
54
|
+
|
|
55
|
+
What's Changed
|
|
56
|
+
~~~~~~~~~~~~~~
|
|
57
|
+
* feat(rustfs): add RustFS object storage support by @cofin in `#117 <https://github.com/litestar-org/pytest-databases/pull/117>`_
|
|
58
|
+
* feat(mysql,mariadb): migrate to oneshot and add new versions by @cofin in `#118 <https://github.com/litestar-org/pytest-databases/pull/118>`_
|
|
59
|
+
* feat(dolt): add dolt database service support by @cofin in `#119 <https://github.com/litestar-org/pytest-databases/pull/119>`_
|
|
60
|
+
* ci: pre-pull docker images with retry to fight registry flakes by @cofin in `#122 <https://github.com/litestar-org/pytest-databases/pull/122>`_
|
|
61
|
+
* feat: expose container by @provinzkraut in `#121 <https://github.com/litestar-org/pytest-databases/pull/121>`_
|
|
62
|
+
* ci: Add missing Python versions by @provinzkraut in `#124 <https://github.com/litestar-org/pytest-databases/pull/124>`_
|
|
63
|
+
* feat: move MariaDB to clientless validation by @cofin in `#126 <https://github.com/litestar-org/pytest-databases/pull/126>`_
|
|
64
|
+
* feat: move Dolt to clientless validation by @cofin in `#125 <https://github.com/litestar-org/pytest-databases/pull/125>`_
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
**Full Changelog**: `v0.17.0...v0.18.0 <https://github.com/litestar-org/pytest-databases/compare/v0.17.0...v0.18.0>`_
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
0.17.0 (2026-03-10)
|
|
71
|
+
-------------------
|
|
72
|
+
|
|
73
|
+
What's Changed
|
|
74
|
+
~~~~~~~~~~~~~~
|
|
75
|
+
* feat: postgres paradedb extension support by @ftsartek in `#110 <https://github.com/litestar-org/pytest-databases/pull/110>`_
|
|
76
|
+
* docs: add ParadeDB fixtures to PostgreSQL documentation by @cofin in `#112 <https://github.com/litestar-org/pytest-databases/pull/112>`_
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
New Contributors
|
|
80
|
+
~~~~~~~~~~~~~~~~
|
|
81
|
+
* @ftsartek made their first contribution in `#110 <https://github.com/litestar-org/pytest-databases/pull/110>`_
|
|
82
|
+
|
|
83
|
+
**Full Changelog**: `v0.16.0...v0.17.0 <https://github.com/litestar-org/pytest-databases/compare/v0.16.0...v0.17.0>`_
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
0.16.0 (2026-01-20)
|
|
87
|
+
-------------------
|
|
88
|
+
|
|
89
|
+
What's Changed
|
|
90
|
+
~~~~~~~~~~~~~~
|
|
91
|
+
* feat(gizmosql): add GizmoSQL database fixture by @cofin in `#108 <https://github.com/litestar-org/pytest-databases/pull/108>`_
|
|
92
|
+
* feat: implement support for `yugabyte` by @cofin in `#84 <https://github.com/litestar-org/pytest-databases/pull/84>`_
|
|
93
|
+
* feat: implement support for `mongodb` by @cofin in `#85 <https://github.com/litestar-org/pytest-databases/pull/85>`_
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
**Full Changelog**: `v0.15.1...v0.16.0 <https://github.com/litestar-org/pytest-databases/compare/v0.15.1...v0.16.0>`_
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
0.15.1 (2026-01-05)
|
|
100
|
+
-------------------
|
|
101
|
+
|
|
102
|
+
What's Changed
|
|
103
|
+
~~~~~~~~~~~~~~
|
|
104
|
+
* fix(mysql): handle InterfaceError during health check by @cofin in `#105 <https://github.com/litestar-org/pytest-databases/pull/105>`_
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
**Full Changelog**: `v0.15.0...v0.15.1 <https://github.com/litestar-org/pytest-databases/compare/v0.15.0...v0.15.1>`_
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
0.15.0 (2025-10-06)
|
|
111
|
+
-------------------
|
|
112
|
+
|
|
113
|
+
What's Changed
|
|
114
|
+
~~~~~~~~~~~~~~
|
|
115
|
+
* feat: Add support for PostgreSQL 18 by @Kumzy in `#98 <https://github.com/litestar-org/pytest-databases/pull/98>`_
|
|
116
|
+
* fix: resolve `StopIteration` error in BigQuery emulator fixture by @cofin in `#99 <https://github.com/litestar-org/pytest-databases/pull/99>`_
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
**Full Changelog**: `v0.14.1...v0.15.0 <https://github.com/litestar-org/pytest-databases/compare/v0.14.1...v0.15.0>`_
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
0.14.1 (2025-09-11)
|
|
123
|
+
-------------------
|
|
124
|
+
|
|
125
|
+
What's Changed
|
|
126
|
+
~~~~~~~~~~~~~~
|
|
127
|
+
|
|
128
|
+
* docs: update documentation link in README.md by @tylovejoy in `#95 <https://github.com/litestar-org/pytest-databases/pull/95>`_
|
|
129
|
+
* fix(redis): Prevent redis service from always using server isolation mode by @provinzkraut in `#96 <https://github.com/litestar-org/pytest-databases/pull/96>`_
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
New Contributors
|
|
133
|
+
~~~~~~~~~~~~~~~~
|
|
134
|
+
* @tylovejoy made their first contribution in `#95 <https://github.com/litestar-org/pytest-databases/pull/95>`_
|
|
135
|
+
|
|
136
|
+
**Full Changelog**: `v0.14.0...v0.14.1 <https://github.com/litestar-org/pytest-databases/compare/v0.14.0...v0.14.1>`_
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
0.14.0 (2025-06-14)
|
|
140
|
+
-------------------
|
|
141
|
+
|
|
142
|
+
What's Changed
|
|
143
|
+
~~~~~~~~~~~~~~
|
|
144
|
+
* feat: Enhance Postgres Services with configurable container host by @am1ter in `#87 <https://github.com/litestar-org/pytest-databases/pull/87>`_
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
New Contributors
|
|
148
|
+
~~~~~~~~~~~~~~~~
|
|
149
|
+
* @am1ter made their first contribution in `#87 <https://github.com/litestar-org/pytest-databases/pull/87>`_
|
|
150
|
+
|
|
151
|
+
**Full Changelog**: `v0.13.0...v0.14.0 <https://github.com/litestar-org/pytest-databases/compare/v0.13.0...v0.14.0>`_
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
0.13.0 (2025-05-25)
|
|
155
|
+
-------------------
|
|
156
|
+
|
|
157
|
+
What's Changed
|
|
158
|
+
~~~~~~~~~~~~~~
|
|
159
|
+
* chore(docs): initial revision of docs by @cofin in `#74 <https://github.com/litestar-org/pytest-databases/pull/74>`_
|
|
160
|
+
* chore(docs): build redirect index by @cofin in `#77 <https://github.com/litestar-org/pytest-databases/pull/77>`_
|
|
161
|
+
* chore(docs): ensure output directory exists by @cofin in `#78 <https://github.com/litestar-org/pytest-databases/pull/78>`_
|
|
162
|
+
* fix: tests failing on ARM MacOS by @peterHoburg in `#82 <https://github.com/litestar-org/pytest-databases/pull/82>`_
|
|
163
|
+
* feat: add `valkey` module and `keydb` and `dragonfly` redis services by @cofin in `#83 <https://github.com/litestar-org/pytest-databases/pull/83>`_
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
New Contributors
|
|
167
|
+
~~~~~~~~~~~~~~~~
|
|
168
|
+
* @peterHoburg made their first contribution in `#82 <https://github.com/litestar-org/pytest-databases/pull/82>`_
|
|
169
|
+
|
|
170
|
+
**Full Changelog**: `v0.12.3...v0.13.0 <https://github.com/litestar-org/pytest-databases/compare/v0.12.3...v0.13.0>`_
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
0.12.3 (2025-04-21)
|
|
174
|
+
-------------------
|
|
175
|
+
|
|
176
|
+
What's Changed
|
|
177
|
+
~~~~~~~~~~~~~~
|
|
178
|
+
* fix(oracle): correct service names used in fixture by @cofin in `#73 <https://github.com/litestar-org/pytest-databases/pull/73>`_
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
**Full Changelog**: `v0.12.2...v0.12.3 <https://github.com/litestar-org/pytest-databases/compare/v0.12.2...v0.12.3>`_
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
0.12.1 (2025-04-06)
|
|
185
|
+
-------------------
|
|
186
|
+
|
|
187
|
+
What's Changed
|
|
188
|
+
~~~~~~~~~~~~~~
|
|
189
|
+
* fix(oracle): use the 18c xe image by @cofin in `#70 <https://github.com/litestar-org/pytest-databases/pull/70>`_
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
**Full Changelog**: `v0.12.0...v0.12.1 <https://github.com/litestar-org/pytest-databases/compare/v0.12.0...v0.12.1>`_
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
0.12.2 (2025-04-06)
|
|
196
|
+
-------------------
|
|
197
|
+
|
|
198
|
+
What's Changed
|
|
199
|
+
~~~~~~~~~~~~~~
|
|
200
|
+
* fix(oracle): additional oracle updates by @cofin in `#71 <https://github.com/litestar-org/pytest-databases/pull/71>`_
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
**Full Changelog**: `v0.12.1...v0.12.2 <https://github.com/litestar-org/pytest-databases/compare/v0.12.1...v0.12.2>`_
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
0.12.0 (2025-03-23)
|
|
207
|
+
-------------------
|
|
208
|
+
|
|
209
|
+
What's Changed
|
|
210
|
+
~~~~~~~~~~~~~~
|
|
211
|
+
* feat: add support for `minio` by @cofin in `#69 <https://github.com/litestar-org/pytest-databases/pull/69>`_
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
**Full Changelog**: `v0.11.1...v0.12.0 <https://github.com/litestar-org/pytest-databases/compare/v0.11.1...v0.12.0>`_
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
0.11.1 (2025-02-11)
|
|
218
|
+
-------------------
|
|
219
|
+
|
|
220
|
+
What's Changed
|
|
221
|
+
~~~~~~~~~~~~~~
|
|
222
|
+
* fix: ensure container metadata is available by @provinzkraut in `#67 <https://github.com/litestar-org/pytest-databases/pull/67>`_
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
**Full Changelog**: `v0.11.0...v0.11.1 <https://github.com/litestar-org/pytest-databases/compare/v0.11.0...v0.11.1>`_
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
0.11.0 (2025-02-10)
|
|
229
|
+
-------------------
|
|
230
|
+
|
|
231
|
+
What's Changed
|
|
232
|
+
~~~~~~~~~~~~~~
|
|
233
|
+
* feat(everything)!: rewrite, I guess by @provinzkraut in `#54 <https://github.com/litestar-org/pytest-databases/pull/54>`_
|
|
234
|
+
* fix(CI): Install missing dependencies by @provinzkraut in `#66 <https://github.com/litestar-org/pytest-databases/pull/66>`_
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
**Full Changelog**: `v0.10.0...v0.11.0 <https://github.com/litestar-org/pytest-databases/compare/v0.10.0...v0.11.0>`_
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
0.10.0 (2024-10-20)
|
|
241
|
+
-------------------
|
|
242
|
+
|
|
243
|
+
What's Changed
|
|
244
|
+
~~~~~~~~~~~~~~
|
|
245
|
+
* feat: Remove volumes when stopping services by @provinzkraut in `#52 <https://github.com/litestar-org/pytest-databases/pull/52>`_
|
|
246
|
+
* feat: add support for postgres17 by @Kumzy in `#51 <https://github.com/litestar-org/pytest-databases/pull/51>`_
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
New Contributors
|
|
250
|
+
~~~~~~~~~~~~~~~~
|
|
251
|
+
* @Kumzy made their first contribution in `#51 <https://github.com/litestar-org/pytest-databases/pull/51>`_
|
|
252
|
+
|
|
253
|
+
**Full Changelog**: `v0.9.0...v0.10.0 <https://github.com/litestar-org/pytest-databases/compare/v0.9.0...v0.10.0>`_
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
0.9.0 (2024-09-07)
|
|
257
|
+
------------------
|
|
258
|
+
|
|
259
|
+
What's Changed
|
|
260
|
+
~~~~~~~~~~~~~~
|
|
261
|
+
* refactor: Remove async dependency by @provinzkraut in `#50 <https://github.com/litestar-org/pytest-databases/pull/50>`_
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
**Full Changelog**: `v0.8.0...v0.9.0 <https://github.com/litestar-org/pytest-databases/compare/v0.8.0...v0.9.0>`_
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
0.8.0 (2024-08-20)
|
|
268
|
+
------------------
|
|
269
|
+
|
|
270
|
+
What's Changed
|
|
271
|
+
~~~~~~~~~~~~~~
|
|
272
|
+
* feat: rebrand Oracle 23 to Oracle 23AI by @cofin in `#48 <https://github.com/litestar-org/pytest-databases/pull/48>`_
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
**Full Changelog**: `v0.7.2...v0.8.0 <https://github.com/litestar-org/pytest-databases/compare/v0.7.2...v0.8.0>`_
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
0.7.2 (2024-08-07)
|
|
279
|
+
------------------
|
|
280
|
+
|
|
281
|
+
What's Changed
|
|
282
|
+
~~~~~~~~~~~~~~
|
|
283
|
+
* feat: consolidate groupings by @cofin in `#46 <https://github.com/litestar-org/pytest-databases/pull/46>`_
|
|
284
|
+
* fix: correctly check for env variables by @cofin in `#47 <https://github.com/litestar-org/pytest-databases/pull/47>`_
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
**Full Changelog**: `v0.7.1...v0.7.2 <https://github.com/litestar-org/pytest-databases/compare/v0.7.1...v0.7.2>`_
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
0.7.1 (2024-07-02)
|
|
291
|
+
------------------
|
|
292
|
+
|
|
293
|
+
What's Changed
|
|
294
|
+
~~~~~~~~~~~~~~
|
|
295
|
+
* fix(valkey): Use the correct image name by @Alc-Alc in `#45 <https://github.com/litestar-org/pytest-databases/pull/45>`_
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
New Contributors
|
|
299
|
+
~~~~~~~~~~~~~~~~
|
|
300
|
+
* @Alc-Alc made their first contribution in `#45 <https://github.com/litestar-org/pytest-databases/pull/45>`_
|
|
301
|
+
|
|
302
|
+
**Full Changelog**: `v0.7.0...v0.7.1 <https://github.com/litestar-org/pytest-databases/compare/v0.7.0...v0.7.1>`_
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
0.7.0 (2024-06-11)
|
|
306
|
+
------------------
|
|
307
|
+
|
|
308
|
+
What's Changed
|
|
309
|
+
~~~~~~~~~~~~~~
|
|
310
|
+
* chore: remove license in each file by @cofin in `#40 <https://github.com/litestar-org/pytest-databases/pull/40>`_
|
|
311
|
+
* feat: `valkey` support & `startup_connection` fixture by @cofin in `#42 <https://github.com/litestar-org/pytest-databases/pull/42>`_
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
**Full Changelog**: `v0.6.0...v0.7.0 <https://github.com/litestar-org/pytest-databases/compare/v0.6.0...v0.7.0>`_
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
0.6.0 (2024-05-25)
|
|
318
|
+
------------------
|
|
319
|
+
|
|
320
|
+
What's Changed
|
|
321
|
+
~~~~~~~~~~~~~~
|
|
322
|
+
* feat: Add azure blob storage with azurite by @provinzkraut in `#39 <https://github.com/litestar-org/pytest-databases/pull/39>`_
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
New Contributors
|
|
326
|
+
~~~~~~~~~~~~~~~~
|
|
327
|
+
* @provinzkraut made their first contribution in `#39 <https://github.com/litestar-org/pytest-databases/pull/39>`_
|
|
328
|
+
|
|
329
|
+
**Full Changelog**: `v0.5.0...v0.6.0 <https://github.com/litestar-org/pytest-databases/compare/v0.5.0...v0.6.0>`_
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
0.5.0 (2024-04-21)
|
|
333
|
+
------------------
|
|
334
|
+
|
|
335
|
+
What's Changed
|
|
336
|
+
~~~~~~~~~~~~~~
|
|
337
|
+
* build(deps): bump codecov/codecov-action from 4.0.1 to 4.3.0 by @dependabot in `#34 <https://github.com/litestar-org/pytest-databases/pull/34>`_
|
|
338
|
+
* feat: independent service configurations by @cofin in `#35 <https://github.com/litestar-org/pytest-databases/pull/35>`_
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
**Full Changelog**: `v0.4.1...v0.5.0 <https://github.com/litestar-org/pytest-databases/compare/v0.4.1...v0.5.0>`_
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
0.4.0 (2024-04-19)
|
|
345
|
+
------------------
|
|
346
|
+
|
|
347
|
+
What's Changed
|
|
348
|
+
~~~~~~~~~~~~~~
|
|
349
|
+
* feat: BigQuery support by @cofin in `#30 <https://github.com/litestar-org/pytest-databases/pull/30>`_
|
|
350
|
+
* chore: documentation updates by @cofin in `#32 <https://github.com/litestar-org/pytest-databases/pull/32>`_
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
**Full Changelog**: `v0.3.1...v0.4.0 <https://github.com/litestar-org/pytest-databases/compare/v0.3.1...v0.4.0>`_
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
0.4.1 (2024-04-19)
|
|
357
|
+
------------------
|
|
358
|
+
|
|
359
|
+
What's Changed
|
|
360
|
+
~~~~~~~~~~~~~~
|
|
361
|
+
* feat: enabled codecov by @cofin in `#33 <https://github.com/litestar-org/pytest-databases/pull/33>`_
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
**Full Changelog**: `v0.4.0...v0.4.1 <https://github.com/litestar-org/pytest-databases/compare/v0.4.0...v0.4.1>`_
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
0.3.0 (2024-04-18)
|
|
368
|
+
------------------
|
|
369
|
+
|
|
370
|
+
What's Changed
|
|
371
|
+
~~~~~~~~~~~~~~
|
|
372
|
+
* build(deps): bump sqlparse from 0.4.4 to 0.5.0 in /requirements by @dependabot in `#27 <https://github.com/litestar-org/pytest-databases/pull/27>`_
|
|
373
|
+
* feat: split compose into multiple files by @cofin in `#28 <https://github.com/litestar-org/pytest-databases/pull/28>`_
|
|
374
|
+
* feat: support for Google AlloyDB Omni by @cofin in `#29 <https://github.com/litestar-org/pytest-databases/pull/29>`_
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
**Full Changelog**: `v0.2.5...v0.3.0 <https://github.com/litestar-org/pytest-databases/compare/v0.2.5...v0.3.0>`_
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
0.3.1 (2024-04-18)
|
|
381
|
+
------------------
|
|
382
|
+
|
|
383
|
+
What's Changed
|
|
384
|
+
~~~~~~~~~~~~~~
|
|
385
|
+
* fix: addresses an issue with the `alloydb omni` integration by @cofin in `#31 <https://github.com/litestar-org/pytest-databases/pull/31>`_
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
**Full Changelog**: `v0.3.0...v0.3.1 <https://github.com/litestar-org/pytest-databases/compare/v0.3.0...v0.3.1>`_
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
0.2.4 (2024-04-10)
|
|
392
|
+
------------------
|
|
393
|
+
|
|
394
|
+
What's Changed
|
|
395
|
+
~~~~~~~~~~~~~~
|
|
396
|
+
* feat: custom project name & parallel testing by @cofin in `#26 <https://github.com/litestar-org/pytest-databases/pull/26>`_
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
**Full Changelog**: `v0.2.3...v0.2.4 <https://github.com/litestar-org/pytest-databases/compare/v0.2.3...v0.2.4>`_
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
0.2.5 (2024-04-10)
|
|
403
|
+
------------------
|
|
404
|
+
|
|
405
|
+
What's Changed
|
|
406
|
+
~~~~~~~~~~~~~~
|
|
407
|
+
* feat: Add Elasticsearch support by @kedod in `#24 <https://github.com/litestar-org/pytest-databases/pull/24>`_
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
New Contributors
|
|
411
|
+
~~~~~~~~~~~~~~~~
|
|
412
|
+
* @kedod made their first contribution in `#24 <https://github.com/litestar-org/pytest-databases/pull/24>`_
|
|
413
|
+
|
|
414
|
+
**Full Changelog**: `v0.2.4...v0.2.5 <https://github.com/litestar-org/pytest-databases/compare/v0.2.4...v0.2.5>`_
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
0.2.3 (2024-04-09)
|
|
418
|
+
------------------
|
|
419
|
+
|
|
420
|
+
What's Changed
|
|
421
|
+
~~~~~~~~~~~~~~
|
|
422
|
+
* fix: set defaults for all env vars by @cofin in `#25 <https://github.com/litestar-org/pytest-databases/pull/25>`_
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
**Full Changelog**: `v0.2.2...v0.2.3 <https://github.com/litestar-org/pytest-databases/compare/v0.2.2...v0.2.3>`_
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
0.2.2 (2024-04-06)
|
|
429
|
+
------------------
|
|
430
|
+
|
|
431
|
+
What's Changed
|
|
432
|
+
~~~~~~~~~~~~~~
|
|
433
|
+
* feat: fixture now configured docker env variables. by @cofin in `#23 <https://github.com/litestar-org/pytest-databases/pull/23>`_
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
**Full Changelog**: `v0.2.1...v0.2.2 <https://github.com/litestar-org/pytest-databases/compare/v0.2.1...v0.2.2>`_
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
0.2.1 (2024-04-05)
|
|
440
|
+
------------------
|
|
441
|
+
|
|
442
|
+
What's Changed
|
|
443
|
+
~~~~~~~~~~~~~~
|
|
444
|
+
* fix(ci): build corrections by @cofin in `#22 <https://github.com/litestar-org/pytest-databases/pull/22>`_
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
**Full Changelog**: `v0.2.0...v0.2.1 <https://github.com/litestar-org/pytest-databases/compare/v0.2.0...v0.2.1>`_
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
0.2.0 (2024-04-04)
|
|
451
|
+
------------------
|
|
452
|
+
|
|
453
|
+
What's Changed
|
|
454
|
+
~~~~~~~~~~~~~~
|
|
455
|
+
* chore(docs): use Litestar branding by @cofin in `#19 <https://github.com/litestar-org/pytest-databases/pull/19>`_
|
|
456
|
+
* build(deps): bump actions/download-artifact from 3 to 4 by @dependabot in `#18 <https://github.com/litestar-org/pytest-databases/pull/18>`_
|
|
457
|
+
* chore(ci): enable license header requirement by @cofin in `#20 <https://github.com/litestar-org/pytest-databases/pull/20>`_
|
|
458
|
+
* feat: add support for `redis`, `keydb`, and `dragonfly` by @cofin in `#21 <https://github.com/litestar-org/pytest-databases/pull/21>`_
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
**Full Changelog**: `v0.1.0...v0.2.0 <https://github.com/litestar-org/pytest-databases/compare/v0.1.0...v0.2.0>`_
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
0.1.0 (2024-04-03)
|
|
465
|
+
------------------
|
|
466
|
+
|
|
467
|
+
What's Changed
|
|
468
|
+
~~~~~~~~~~~~~~
|
|
469
|
+
|
|
470
|
+
Initial Release
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
* feat: implements existing fixtures by @cofin in https://github.com/jolt-org/pytest-databases/pull/6
|
|
474
|
+
* build(deps): bump actions/download-artifact from 3 to 4 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/5
|
|
475
|
+
* build(deps): bump pypa/gh-action-pypi-publish from 1.6.4 to 1.8.14 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/4
|
|
476
|
+
* build(deps): bump softprops/action-gh-release from 1 to 2 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/3
|
|
477
|
+
* build(deps): bump actions/checkout from 3 to 4 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/2
|
|
478
|
+
* build(deps): bump actions/upload-artifact from 3 to 4 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/1
|
|
479
|
+
* fix(build): requirements update by @cofin in https://github.com/jolt-org/pytest-databases/pull/7
|
|
480
|
+
* build(deps): bump docker/setup-qemu-action from 2 to 3 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/9
|
|
481
|
+
* build(deps): bump pypa/cibuildwheel from 2.11.4 to 2.17.0 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/8
|
|
482
|
+
* feat: docs and build pipeline by @cofin in https://github.com/jolt-org/pytest-databases/pull/10
|
|
483
|
+
* feat: `mariadb` services and configurable database connections by @cofin in https://github.com/jolt-org/pytest-databases/pull/11
|
|
484
|
+
* feat(ci): build updates by @cofin in https://github.com/jolt-org/pytest-databases/pull/12
|
|
485
|
+
* build(deps): bump github/codeql-action from 2 to 3 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/17
|
|
486
|
+
* build(deps): bump actions/github-script from 6 to 7 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/16
|
|
487
|
+
* build(deps): bump actions/upload-artifact from 3 to 4 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/15
|
|
488
|
+
* build(deps): bump actions/setup-python from 4 to 5 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/14
|
|
489
|
+
* build(deps): bump dawidd6/action-download-artifact from 2 to 3 by @dependabot in https://github.com/jolt-org/pytest-databases/pull/13
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
New Contributors
|
|
493
|
+
~~~~~~~~~~~~~~~~
|
|
494
|
+
* @cofin made their first contribution in https://github.com/jolt-org/pytest-databases/pull/6
|
|
495
|
+
* @dependabot made their first contribution in https://github.com/jolt-org/pytest-databases/pull/5
|
|
496
|
+
|
|
497
|
+
**Full Changelog**: https://github.com/jolt-org/pytest-databases/commits/v0.1.0
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
PostgreSQL
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
Integration with `PostgreSQL <https://www.postgresql.org/>`_ using the `PostgreSQL Docker Image <https://hub.docker.com/_/postgres>`_, Google's `AlloyDB Omni <https://cloud.google.com/alloydb/omni?hl=en>`_, `pgvector Docker Image <https://hub.docker.com/r/ankane/pgvector>`_, or `ParadeDB Docker Image <https://hub.docker.com/r/paradedb/paradedb>`_
|
|
5
|
+
|
|
6
|
+
Installation
|
|
7
|
+
------------
|
|
8
|
+
|
|
9
|
+
.. code-block:: bash
|
|
10
|
+
|
|
11
|
+
pip install pytest-databases[postgres]
|
|
12
|
+
|
|
13
|
+
Usage Example
|
|
14
|
+
-------------
|
|
15
|
+
|
|
16
|
+
.. code-block:: python
|
|
17
|
+
|
|
18
|
+
import pytest
|
|
19
|
+
import psycopg
|
|
20
|
+
from pytest_databases.docker.postgres import PostgresService
|
|
21
|
+
|
|
22
|
+
pytest_plugins = ["pytest_databases.docker.postgres"]
|
|
23
|
+
|
|
24
|
+
def test(postgres_service: PostgresService) -> None:
|
|
25
|
+
with psycopg.connect(
|
|
26
|
+
f"postgresql://{postgres_service.user}:{postgres_service.password}@{postgres_service.host}:{postgres_service.port}/{postgres_service.database}"
|
|
27
|
+
) as conn:
|
|
28
|
+
db_open = conn.execute("SELECT 1").fetchone()
|
|
29
|
+
assert db_open is not None and db_open[0] == 1
|
|
30
|
+
|
|
31
|
+
def test(postgres_connection: psycopg.Connection) -> None:
|
|
32
|
+
postgres_connection.execute("CREATE TABLE if not exists simple_table as SELECT 1")
|
|
33
|
+
result = postgres_connection.execute("select * from simple_table").fetchone()
|
|
34
|
+
assert result is not None and result[0] == 1
|
|
35
|
+
|
|
36
|
+
Available Fixtures
|
|
37
|
+
------------------
|
|
38
|
+
|
|
39
|
+
* ``postgres_host``: The PostgreSQL host address (defaults to "127.0.0.1", can be overridden with ``POSTGRES_HOST`` environment variable).
|
|
40
|
+
* ``postgres_user``: The PostgreSQL user.
|
|
41
|
+
* ``postgres_password``: The PostgreSQL password.
|
|
42
|
+
* ``postgres_database``: The PostgreSQL database name to use.
|
|
43
|
+
* ``postgres_image``: The Docker image to use for PostgreSQL.
|
|
44
|
+
* ``postgres_port``: Optional host-side port pin (default ``None``, override via ``POSTGRES_PORT`` env).
|
|
45
|
+
* ``postgres_service``: A fixture that provides a PostgreSQL service.
|
|
46
|
+
* ``postgres_connection``: A fixture that provides a PostgreSQL connection.
|
|
47
|
+
|
|
48
|
+
The following version-specific fixtures are also available. Each has its own
|
|
49
|
+
``*_port`` fixture and matching env var so multiple versions can be pinned in
|
|
50
|
+
the same session without colliding:
|
|
51
|
+
|
|
52
|
+
* ``postgres_11_service``, ``postgres_11_connection``, ``postgres_11_port`` (env: ``POSTGRES_11_PORT``)
|
|
53
|
+
* ``postgres_12_service``, ``postgres_12_connection``, ``postgres_12_port`` (env: ``POSTGRES_12_PORT``)
|
|
54
|
+
* ``postgres_13_service``, ``postgres_13_connection``, ``postgres_13_port`` (env: ``POSTGRES_13_PORT``)
|
|
55
|
+
* ``postgres_14_service``, ``postgres_14_connection``, ``postgres_14_port`` (env: ``POSTGRES_14_PORT``)
|
|
56
|
+
* ``postgres_15_service``, ``postgres_15_connection``, ``postgres_15_port`` (env: ``POSTGRES_15_PORT``)
|
|
57
|
+
* ``postgres_16_service``, ``postgres_16_connection``, ``postgres_16_port`` (env: ``POSTGRES_16_PORT``)
|
|
58
|
+
* ``postgres_17_service``, ``postgres_17_connection``, ``postgres_17_port`` (env: ``POSTGRES_17_PORT``)
|
|
59
|
+
* ``postgres_18_service``, ``postgres_18_connection``, ``postgres_18_port`` (env: ``POSTGRES_18_PORT``)
|
|
60
|
+
|
|
61
|
+
pgvector
|
|
62
|
+
^^^^^^^^
|
|
63
|
+
|
|
64
|
+
* ``pgvector_image``, ``pgvector_service``, ``pgvector_connection``, ``pgvector_port`` (env: ``PGVECTOR_PORT``) — default image ``pgvector/pgvector:pg18``
|
|
65
|
+
* ``pgvector_13_service``, ``pgvector_13_connection``, ``pgvector_13_port`` (env: ``PGVECTOR_13_PORT``)
|
|
66
|
+
* ``pgvector_14_service``, ``pgvector_14_connection``, ``pgvector_14_port`` (env: ``PGVECTOR_14_PORT``)
|
|
67
|
+
* ``pgvector_15_service``, ``pgvector_15_connection``, ``pgvector_15_port`` (env: ``PGVECTOR_15_PORT``)
|
|
68
|
+
* ``pgvector_16_service``, ``pgvector_16_connection``, ``pgvector_16_port`` (env: ``PGVECTOR_16_PORT``)
|
|
69
|
+
* ``pgvector_17_service``, ``pgvector_17_connection``, ``pgvector_17_port`` (env: ``PGVECTOR_17_PORT``)
|
|
70
|
+
* ``pgvector_18_service``, ``pgvector_18_connection``, ``pgvector_18_port`` (env: ``PGVECTOR_18_PORT``)
|
|
71
|
+
|
|
72
|
+
ParadeDB
|
|
73
|
+
^^^^^^^^
|
|
74
|
+
|
|
75
|
+
ParadeDB extends PostgreSQL with BM25 full-text search and analytics extensions.
|
|
76
|
+
|
|
77
|
+
* ``paradedb_image``, ``paradedb_service``, ``paradedb_connection``, ``paradedb_port`` (env: ``PARADEDB_PORT``) — default image ``paradedb/paradedb:latest-pg18``
|
|
78
|
+
* ``paradedb_15_service``, ``paradedb_15_connection``, ``paradedb_15_port`` (env: ``PARADEDB_15_PORT``)
|
|
79
|
+
* ``paradedb_16_service``, ``paradedb_16_connection``, ``paradedb_16_port`` (env: ``PARADEDB_16_PORT``)
|
|
80
|
+
* ``paradedb_17_service``, ``paradedb_17_connection``, ``paradedb_17_port`` (env: ``PARADEDB_17_PORT``)
|
|
81
|
+
* ``paradedb_18_service``, ``paradedb_18_connection``, ``paradedb_18_port`` (env: ``PARADEDB_18_PORT``)
|
|
82
|
+
|
|
83
|
+
AlloyDB Omni
|
|
84
|
+
^^^^^^^^^^^^
|
|
85
|
+
|
|
86
|
+
* ``alloydb_omni_image``, ``alloydb_omni_service``, ``alloydb_omni_connection``, ``alloydb_omni_port`` (env: ``ALLOYDB_OMNI_PORT``) — default image ``google/alloydbomni:17``
|
|
87
|
+
* ``alloydb_omni_15_service``, ``alloydb_omni_15_connection``, ``alloydb_omni_15_port`` (env: ``ALLOYDB_OMNI_15_PORT``)
|
|
88
|
+
* ``alloydb_omni_16_service``, ``alloydb_omni_16_connection``, ``alloydb_omni_16_port`` (env: ``ALLOYDB_OMNI_16_PORT``)
|
|
89
|
+
* ``alloydb_omni_17_service``, ``alloydb_omni_17_connection``, ``alloydb_omni_17_port`` (env: ``ALLOYDB_OMNI_17_PORT``)
|
|
90
|
+
|
|
91
|
+
Configuration
|
|
92
|
+
-------------
|
|
93
|
+
|
|
94
|
+
PostgreSQL services can be configured using environment variables:
|
|
95
|
+
|
|
96
|
+
* ``POSTGRES_HOST``: The host address for the PostgreSQL container (default: "127.0.0.1")
|
|
97
|
+
* ``POSTGRES_PORT`` / ``POSTGRES_NN_PORT`` / ``PGVECTOR_PORT`` / ``PGVECTOR_NN_PORT`` / ``PARADEDB_PORT`` / ``PARADEDB_NN_PORT`` / ``ALLOYDB_OMNI_PORT`` / ``ALLOYDB_OMNI_NN_PORT``: Pin a specific host-side port for the matching service fixture. When unset, Docker picks a random free port (the default). See GitHub issue #131.
|
|
98
|
+
|
|
99
|
+
Example usage with custom host:
|
|
100
|
+
|
|
101
|
+
.. code-block:: bash
|
|
102
|
+
|
|
103
|
+
export POSTGRES_HOST="192.168.1.100"
|
|
104
|
+
pytest
|
|
105
|
+
|
|
106
|
+
Pinning a host port (rootless Docker workaround for #131):
|
|
107
|
+
|
|
108
|
+
.. code-block:: bash
|
|
109
|
+
|
|
110
|
+
export PGVECTOR_18_PORT=5432
|
|
111
|
+
pytest tests/test_my_pgvector_thing.py
|
|
112
|
+
|
|
113
|
+
.. note::
|
|
114
|
+
|
|
115
|
+
If a container with the target name already exists, its existing port
|
|
116
|
+
mapping wins and the ``*_port`` request is silently ignored. This is the
|
|
117
|
+
pre-existing container-reuse behavior documented in GitHub issue #131
|
|
118
|
+
and is what some downstream workarounds rely on. A clean session always
|
|
119
|
+
honors the new port because ``docker_service`` stops all
|
|
120
|
+
``pytest_databases``-labelled containers at session entry.
|
|
121
|
+
|
|
122
|
+
Service API
|
|
123
|
+
-----------
|
|
124
|
+
|
|
125
|
+
.. automodule:: pytest_databases.docker.postgres
|
|
126
|
+
:members:
|
|
127
|
+
:undoc-members:
|
|
128
|
+
:show-inheritance:
|