pytest-databases 0.3.0__tar.gz → 0.3.1__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.3.0 → pytest_databases-0.3.1}/PKG-INFO +5 -13
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/README.md +4 -12
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/pyproject.toml +1 -1
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/alloydb_omni.py +3 -3
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_alloydb_omni.py +0 -1
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_keydb.py +0 -2
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.gitignore +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.pre-commit-config.yaml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.sourcery.yaml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.vscode/settings.json +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/CODEOWNERS +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/CONTRIBUTING.rst +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/LICENSE +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/Makefile +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/requirements/requirements-dev.txt +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/requirements/requirements-docs.txt +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/requirements/requirements.txt +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/scripts/__init__.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/scripts/build_docs.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/scripts/convert_docs.sh +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/sonar-project.properties +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/__init__.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/__metadata__.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/__init__.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/cockroachdb.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.alloydb-omni.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.cockroachdb.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.dragonfly.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.elasticsearch.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.keydb.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.mariadb.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.mssql.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.mysql.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.oracle.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.postgres.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.redis.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.spanner.yml +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/dragonfly.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/elastic_search.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/keydb.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/mariadb.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/mssql.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/mysql.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/oracle.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/postgres.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/redis.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/spanner.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/helpers.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/py.typed +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/__init__.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/conftest.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/__init__.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_cockroachdb.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_dragonfly.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_elasticsearch.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_mariadb.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_mssql.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_mysql.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_oracle.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_postgres.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_redis.py +0 -0
- {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_spanner.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pytest-databases
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
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
|
|
@@ -50,21 +50,13 @@ Description-Content-Type: text/markdown
|
|
|
50
50
|
|
|
51
51
|
Reusable test fixtures for any and all databases.
|
|
52
52
|
|
|
53
|
-
<!-- markdownlint-disable -->
|
|
54
|
-
<p align="center">
|
|
55
|
-
<!-- github-banner-start -->
|
|
56
|
-
<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" />
|
|
57
|
-
<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" />
|
|
58
|
-
<!-- github-banner-end -->
|
|
59
|
-
</p>
|
|
60
|
-
<!-- markdownlint-restore -->
|
|
61
53
|
<div align="center">
|
|
62
54
|
|
|
63
55
|
<!-- prettier-ignore-start -->
|
|
64
56
|
|
|
65
57
|
| Project | | Status |
|
|
66
58
|
|-----------|:----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
67
|
-
| CI/CD | | [](https://github.com/litestar-org/pytest-databases/actions/workflows/release.yml) [](https://github.com/litestar-org/pytest-databases/actions/workflows/ci.yml) [](https://github.com/litestar-org/pytest-databases/actions/workflows/docs.yml) |
|
|
68
60
|
| Quality | | [](https://codecov.io/github/litestar-org/pytest-databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) |
|
|
69
61
|
| Package | | [](https://badge.fury.io/py/pytest-databases)  |
|
|
70
62
|
| Community | | [](https://reddit.com/r/litestarapi) [](https://discord.gg/litestar-919193495116337154) [](https://matrix.to/#/#litestar:matrix.org) [](https://blog.litestar.dev) [](https://twitter.com/LitestarAPI) [](https://blog.litestar.dev) |
|
|
@@ -73,10 +65,10 @@ Reusable test fixtures for any and all databases.
|
|
|
73
65
|
<!-- prettier-ignore-end -->
|
|
74
66
|
</div>
|
|
75
67
|
|
|
76
|
-
> [!WARNING]
|
|
68
|
+
> [!WARNING]
|
|
77
69
|
>
|
|
78
|
-
> Please note that pytest-databases is currently in a pre-release
|
|
79
|
-
> active development, and its API is subject to change. We encourage developers to experiment with pytest-databases and provide
|
|
70
|
+
> Please note that pytest-databases is currently in a pre-release stage of development. This means the library is still under
|
|
71
|
+
> active development, and its initial API is subject to change. We encourage developers to experiment with pytest-databases and provide
|
|
80
72
|
> feedback, but we recommend against using it in production environments until a stable release is available.`
|
|
81
73
|
|
|
82
74
|
## About
|
|
@@ -2,21 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Reusable test fixtures for any and all databases.
|
|
4
4
|
|
|
5
|
-
<!-- markdownlint-disable -->
|
|
6
|
-
<p align="center">
|
|
7
|
-
<!-- github-banner-start -->
|
|
8
|
-
<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" />
|
|
9
|
-
<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" />
|
|
10
|
-
<!-- github-banner-end -->
|
|
11
|
-
</p>
|
|
12
|
-
<!-- markdownlint-restore -->
|
|
13
5
|
<div align="center">
|
|
14
6
|
|
|
15
7
|
<!-- prettier-ignore-start -->
|
|
16
8
|
|
|
17
9
|
| Project | | Status |
|
|
18
10
|
|-----------|:----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
19
|
-
| CI/CD | | [](https://github.com/litestar-org/pytest-databases/actions/workflows/release.yml) [](https://github.com/litestar-org/pytest-databases/actions/workflows/ci.yml) [](https://github.com/litestar-org/pytest-databases/actions/workflows/docs.yml) |
|
|
20
12
|
| Quality | | [](https://codecov.io/github/litestar-org/pytest-databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) [](https://sonarcloud.io/summary/new_code?id=litestar-org_pytest_databases) |
|
|
21
13
|
| Package | | [](https://badge.fury.io/py/pytest-databases)  |
|
|
22
14
|
| Community | | [](https://reddit.com/r/litestarapi) [](https://discord.gg/litestar-919193495116337154) [](https://matrix.to/#/#litestar:matrix.org) [](https://blog.litestar.dev) [](https://twitter.com/LitestarAPI) [](https://blog.litestar.dev) |
|
|
@@ -25,10 +17,10 @@ Reusable test fixtures for any and all databases.
|
|
|
25
17
|
<!-- prettier-ignore-end -->
|
|
26
18
|
</div>
|
|
27
19
|
|
|
28
|
-
> [!WARNING]
|
|
20
|
+
> [!WARNING]
|
|
29
21
|
>
|
|
30
|
-
> Please note that pytest-databases is currently in a pre-release
|
|
31
|
-
> active development, and its API is subject to change. We encourage developers to experiment with pytest-databases and provide
|
|
22
|
+
> Please note that pytest-databases is currently in a pre-release stage of development. This means the library is still under
|
|
23
|
+
> active development, and its initial API is subject to change. We encourage developers to experiment with pytest-databases and provide
|
|
32
24
|
> feedback, but we recommend against using it in production environments until a stable release is available.`
|
|
33
25
|
|
|
34
26
|
## About
|
{pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/alloydb_omni.py
RENAMED
|
@@ -89,7 +89,7 @@ async def alloydb_omni_service(
|
|
|
89
89
|
docker_services: DockerServiceRegistry,
|
|
90
90
|
default_alloydb_omni_service_name: str,
|
|
91
91
|
docker_compose_files: list[Path],
|
|
92
|
-
|
|
92
|
+
alloydb_omni_port: int,
|
|
93
93
|
postgres_database: str,
|
|
94
94
|
postgres_user: str,
|
|
95
95
|
postgres_password: str,
|
|
@@ -97,14 +97,14 @@ async def alloydb_omni_service(
|
|
|
97
97
|
os.environ["POSTGRES_PASSWORD"] = postgres_password
|
|
98
98
|
os.environ["POSTGRES_USER"] = postgres_user
|
|
99
99
|
os.environ["POSTGRES_DATABASE"] = postgres_database
|
|
100
|
-
os.environ[f"{default_alloydb_omni_service_name.upper()}_PORT"] = str(
|
|
100
|
+
os.environ[f"{default_alloydb_omni_service_name.upper()}_PORT"] = str(alloydb_omni_port)
|
|
101
101
|
await docker_services.start(
|
|
102
102
|
name=default_alloydb_omni_service_name,
|
|
103
103
|
docker_compose_files=docker_compose_files,
|
|
104
104
|
timeout=45,
|
|
105
105
|
pause=1,
|
|
106
106
|
check=alloydb_omni_responsive,
|
|
107
|
-
port=
|
|
107
|
+
port=alloydb_omni_port,
|
|
108
108
|
database=postgres_database,
|
|
109
109
|
user=postgres_user,
|
|
110
110
|
password=postgres_password,
|
|
@@ -42,8 +42,6 @@ def test_keydb_default_config(keydb_port: int) -> None:
|
|
|
42
42
|
assert keydb_port == 6396
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
# the container fails to start on my local VM hardware. For now, I'm marking this as acceptable failure. It passes in CI tests.
|
|
46
|
-
@pytest.mark.xfail
|
|
47
45
|
async def test_keydb_service(
|
|
48
46
|
docker_ip: str,
|
|
49
47
|
keydb_service: DockerServiceRegistry,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/cockroachdb.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/elastic_search.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|