Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: litestar-org/pytest-databases
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: litestar-org/pytest-databases
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.1
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Apr 18, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    58e0049 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0b7cacd View commit details
Showing with 8 additions and 19 deletions.
  1. +4 −12 README.md
  2. +1 −1 pyproject.toml
  3. +3 −3 src/pytest_databases/docker/alloydb_omni.py
  4. +0 −1 tests/docker/test_alloydb_omni.py
  5. +0 −2 tests/docker/test_keydb.py
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,21 +2,13 @@

Reusable test fixtures for any and all databases.

<!-- markdownlint-disable -->
<p align="center">
<!-- github-banner-start -->
<img src="https://raw.githubusercontent.com/litestar-org/branding/main/assets/Branding%20-%20SVG%20-%20Transparent/Logo%20-%20Banner%20-%20Inline%20-%20Light.svg#gh-light-mode-only" alt="Litestar Logo - Light" width="100%" height="auto" />
<img src="https://raw.githubusercontent.com/litestar-org/branding/main/assets/Branding%20-%20SVG%20-%20Transparent/Logo%20-%20Banner%20-%20Inline%20-%20Dark.svg#gh-dark-mode-only" alt="Litestar Logo - Dark" width="100%" height="auto" />
<!-- github-banner-end -->
</p>
<!-- markdownlint-restore -->
<div align="center">

<!-- prettier-ignore-start -->

| Project | | Status |
|-----------|:----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| CI/CD | | [![Latest Release](https://github.com/litestar-org/pytest-databases/actions/workflows/publish.yml/badge.svg)](https://github.com/litestar-org/pytest-databases/actions/workflows/publish.yml) [![ci](https://github.com/litestar-org/pytest-databases/actions/workflows/ci.yml/badge.svg)](https://github.com/litestar-org/pytest-databases/actions/workflows/ci.yml) [![Documentation Building](https://github.com/litestar-org/pytest-databases/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/litestar-org/pytest-databases/actions/workflows/docs.yml) |
| CI/CD | | [![Latest Release](https://github.com/litestar-org/pytest-databases/actions/workflows/release.yml/badge.svg)](https://github.com/litestar-org/pytest-databases/actions/workflows/release.yml) [![ci](https://github.com/litestar-org/pytest-databases/actions/workflows/ci.yml/badge.svg)](https://github.com/litestar-org/pytest-databases/actions/workflows/ci.yml) [![Documentation Building](https://github.com/litestar-org/pytest-databases/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/litestar-org/pytest-databases/actions/workflows/docs.yml) |
| Quality | | [![Coverage](https://codecov.io/github/litestar-org/pytest-databases/graph/badge.svg?token=vKez4Pycrc)](https://codecov.io/github/litestar-org/pytest-databases) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=litestar-org_pytest_databases&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=litestar-org_pytest_databases&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=litestar-org_pytest_databases&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=litestar-org_pytest_databases&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) |
| Package | | [![PyPI - Version](https://img.shields.io/pypi/v/pytest-databases?labelColor=202235&color=edb641&logo=python&logoColor=edb641)](https://badge.fury.io/py/pytest-databases) ![PyPI - Support Python Versions](https://img.shields.io/pypi/pyversions/pytest-databases?labelColor=202235&color=edb641&logo=python&logoColor=edb641) |
| Community | | [![Reddit](https://img.shields.io/reddit/subreddit-subscribers/litestarapi?label=r%2FLitestar&logo=reddit&labelColor=202235&color=edb641&logoColor=edb641)](https://reddit.com/r/litestarapi) [![Discord](https://img.shields.io/discord/919193495116337154?labelColor=202235&color=edb641&label=chat%20on%20discord&logo=discord&logoColor=edb641)](https://discord.gg/litestar-919193495116337154) [![Matrix](https://img.shields.io/badge/chat%20on%20Matrix-bridged-202235?labelColor=202235&color=edb641&logo=matrix&logoColor=edb641)](https://matrix.to/#/#litestar:matrix.org) [![Medium](https://img.shields.io/badge/Medium-202235?labelColor=202235&color=edb641&logo=medium&logoColor=edb641)](https://blog.litestar.dev) [![Twitter](https://img.shields.io/twitter/follow/LitestarAPI?labelColor=202235&color=edb641&logo=twitter&logoColor=edb641&style=flat)](https://twitter.com/LitestarAPI) [![Blog](https://img.shields.io/badge/Blog-litestar.dev-202235?logo=blogger&labelColor=202235&color=edb641&logoColor=edb641)](https://blog.litestar.dev) |
@@ -25,10 +17,10 @@ Reusable test fixtures for any and all databases.
<!-- prettier-ignore-end -->
</div>

> [!WARNING] > **Pre-Release Alpha Stage**
> [!WARNING]
>
> Please note that pytest-databases is currently in a pre-release alpha stage of development. This means the library is still under
> active development, and its API is subject to change. We encourage developers to experiment with pytest-databases and provide
> Please note that pytest-databases is currently in a pre-release stage of development. This means the library is still under
> active development, and its initial API is subject to change. We encourage developers to experiment with pytest-databases and provide
> feedback, but we recommend against using it in production environments until a stable release is available.`
## About
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ license = "MIT"
name = "pytest-databases"
readme = "README.md"
requires-python = ">=3.8"
version = "0.3.0"
version = "0.3.1"
#
authors = [{ name = "Cody Fincher", email = "cody.fincher@gmail.com" }]
keywords = [
6 changes: 3 additions & 3 deletions src/pytest_databases/docker/alloydb_omni.py
Original file line number Diff line number Diff line change
@@ -89,22 +89,22 @@ async def alloydb_omni_service(
docker_services: DockerServiceRegistry,
default_alloydb_omni_service_name: str,
docker_compose_files: list[Path],
postgres_port: int,
alloydb_omni_port: int,
postgres_database: str,
postgres_user: str,
postgres_password: str,
) -> None:
os.environ["POSTGRES_PASSWORD"] = postgres_password
os.environ["POSTGRES_USER"] = postgres_user
os.environ["POSTGRES_DATABASE"] = postgres_database
os.environ[f"{default_alloydb_omni_service_name.upper()}_PORT"] = str(postgres_port)
os.environ[f"{default_alloydb_omni_service_name.upper()}_PORT"] = str(alloydb_omni_port)
await docker_services.start(
name=default_alloydb_omni_service_name,
docker_compose_files=docker_compose_files,
timeout=45,
pause=1,
check=alloydb_omni_responsive,
port=postgres_port,
port=alloydb_omni_port,
database=postgres_database,
user=postgres_user,
password=postgres_password,
1 change: 0 additions & 1 deletion tests/docker/test_alloydb_omni.py
Original file line number Diff line number Diff line change
@@ -51,7 +51,6 @@ async def test_alloydb_omni_default_config(
assert postgres_password == "super-secret"


@pytest.mark.xfail
async def test_alloydb_omni_services(
docker_ip: str,
alloydb_omni_service: DockerServiceRegistry,
2 changes: 0 additions & 2 deletions tests/docker/test_keydb.py
Original file line number Diff line number Diff line change
@@ -42,8 +42,6 @@ def test_keydb_default_config(keydb_port: int) -> None:
assert keydb_port == 6396


# the container fails to start on my local VM hardware. For now, I'm marking this as acceptable failure. It passes in CI tests.
@pytest.mark.xfail
async def test_keydb_service(
docker_ip: str,
keydb_service: DockerServiceRegistry,