Skip to content

Commit 29dfe0a

Browse files
authored
docs: add ParadeDB fixtures to PostgreSQL documentation (#112)
- Add ParadeDB Docker image reference and fixture entries (`paradedb_image`, `paradedb_service`, `paradedb_connection`) to `docs/supported-databases/postgres.rst`, completing docs for PR #110 - Fix pre-existing RUF070 lint warning in `mongodb.py` (unnecessary assignment before yield)
1 parent fe71587 commit 29dfe0a

5 files changed

Lines changed: 1101 additions & 799 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919

2020
# Ruff replaces black, flake8, autoflake and isort
2121
- repo: https://github.com/charliermarsh/ruff-pre-commit
22-
rev: "v0.14.13" # make sure this is always consistent with hatch configs
22+
rev: "v0.15.5" # make sure this is always consistent with hatch configs
2323
hooks:
2424
- id: ruff
2525
args: [--config, ./pyproject.toml]

docs/supported-databases/postgres.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PostgreSQL
22
==========
33

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>`_ or `pgvector Docker Image <https://hub.docker.com/r/ankane/pgvector>`_
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>`_
55

66
Installation
77
------------
@@ -56,6 +56,7 @@ The following version-specific fixtures are also available:
5656
* ``postgres_17_image``, ``postgres_17_service``, ``postgres_17_connection``: PostgreSQL 17.x
5757
* ``postgres_18_image``, ``postgres_18_service``, ``postgres_18_connection``: PostgreSQL 18.x
5858
* ``pgvector_image``, ``pgvector_service``. ``pgvector_connection``: Latest Available pgvector Docker image.
59+
* ``paradedb_image``, ``paradedb_service``, ``paradedb_connection``: ParadeDB (PostgreSQL with BM25 full-text search and analytics extensions).
5960

6061
Configuration
6162
-------------

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MIT"
1212
name = "pytest-databases"
1313
readme = "README.md"
1414
requires-python = ">=3.9"
15-
version = "0.16.0"
15+
version = "0.17.0"
1616
#
1717
authors = [{ name = "Cody Fincher", email = "cody@litestar.dev" }]
1818
keywords = [
@@ -138,7 +138,7 @@ test = [
138138
allow_dirty = true
139139
commit = false
140140
commit_args = "--no-verify"
141-
current_version = "0.16.0"
141+
current_version = "0.17.0"
142142
ignore_missing_files = false
143143
ignore_missing_version = false
144144
message = "chore(release): bump to `v{new_version}`"

src/pytest_databases/docker/mongodb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ def mongodb_database(
135135
Yields:
136136
A MongoDB database instance.
137137
"""
138-
db = mongodb_connection[mongodb_service.database]
139-
yield db
138+
yield mongodb_connection[mongodb_service.database]
140139
# For a truly clean state per test, you might consider dropping the database here,
141140
# but it depends on the desired test isolation and speed.
142141
# e.g., mongodb_connection.drop_database(mongodb_service.database)

0 commit comments

Comments
 (0)