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.
Files changed (62) hide show
  1. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/PKG-INFO +5 -13
  2. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/README.md +4 -12
  3. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/pyproject.toml +1 -1
  4. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/alloydb_omni.py +3 -3
  5. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_alloydb_omni.py +0 -1
  6. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_keydb.py +0 -2
  7. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.gitignore +0 -0
  8. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.pre-commit-config.yaml +0 -0
  9. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.sourcery.yaml +0 -0
  10. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/.vscode/settings.json +0 -0
  11. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/CODEOWNERS +0 -0
  12. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/CONTRIBUTING.rst +0 -0
  13. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/LICENSE +0 -0
  14. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/Makefile +0 -0
  15. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/requirements/requirements-dev.txt +0 -0
  16. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/requirements/requirements-docs.txt +0 -0
  17. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/requirements/requirements.txt +0 -0
  18. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/scripts/__init__.py +0 -0
  19. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/scripts/build_docs.py +0 -0
  20. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/scripts/convert_docs.sh +0 -0
  21. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/sonar-project.properties +0 -0
  22. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/__init__.py +0 -0
  23. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/__metadata__.py +0 -0
  24. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/__init__.py +0 -0
  25. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/cockroachdb.py +0 -0
  26. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.alloydb-omni.yml +0 -0
  27. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.cockroachdb.yml +0 -0
  28. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.dragonfly.yml +0 -0
  29. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.elasticsearch.yml +0 -0
  30. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.keydb.yml +0 -0
  31. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.mariadb.yml +0 -0
  32. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.mssql.yml +0 -0
  33. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.mysql.yml +0 -0
  34. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.oracle.yml +0 -0
  35. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.postgres.yml +0 -0
  36. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.redis.yml +0 -0
  37. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/docker-compose.spanner.yml +0 -0
  38. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/dragonfly.py +0 -0
  39. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/elastic_search.py +0 -0
  40. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/keydb.py +0 -0
  41. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/mariadb.py +0 -0
  42. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/mssql.py +0 -0
  43. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/mysql.py +0 -0
  44. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/oracle.py +0 -0
  45. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/postgres.py +0 -0
  46. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/redis.py +0 -0
  47. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/docker/spanner.py +0 -0
  48. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/helpers.py +0 -0
  49. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/src/pytest_databases/py.typed +0 -0
  50. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/__init__.py +0 -0
  51. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/conftest.py +0 -0
  52. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/__init__.py +0 -0
  53. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_cockroachdb.py +0 -0
  54. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_dragonfly.py +0 -0
  55. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_elasticsearch.py +0 -0
  56. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_mariadb.py +0 -0
  57. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_mssql.py +0 -0
  58. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_mysql.py +0 -0
  59. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_oracle.py +0 -0
  60. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_postgres.py +0 -0
  61. {pytest_databases-0.3.0 → pytest_databases-0.3.1}/tests/docker/test_redis.py +0 -0
  62. {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.0
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 | | [![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) |
59
+ | 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) |
68
60
  | 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) |
69
61
  | 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) |
70
62
  | 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) |
@@ -73,10 +65,10 @@ Reusable test fixtures for any and all databases.
73
65
  <!-- prettier-ignore-end -->
74
66
  </div>
75
67
 
76
- > [!WARNING] > **Pre-Release Alpha Stage**
68
+ > [!WARNING]
77
69
  >
78
- > Please note that pytest-databases is currently in a pre-release alpha stage of development. This means the library is still under
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 | | [![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) |
11
+ | 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) |
20
12
  | 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) |
21
13
  | 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) |
22
14
  | 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.
25
17
  <!-- prettier-ignore-end -->
26
18
  </div>
27
19
 
28
- > [!WARNING] > **Pre-Release Alpha Stage**
20
+ > [!WARNING]
29
21
  >
30
- > Please note that pytest-databases is currently in a pre-release alpha stage of development. This means the library is still under
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
@@ -12,7 +12,7 @@ license = "MIT"
12
12
  name = "pytest-databases"
13
13
  readme = "README.md"
14
14
  requires-python = ">=3.8"
15
- version = "0.3.0"
15
+ version = "0.3.1"
16
16
  #
17
17
  authors = [{ name = "Cody Fincher", email = "cody.fincher@gmail.com" }]
18
18
  keywords = [
@@ -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
- postgres_port: int,
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(postgres_port)
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=postgres_port,
107
+ port=alloydb_omni_port,
108
108
  database=postgres_database,
109
109
  user=postgres_user,
110
110
  password=postgres_password,
@@ -51,7 +51,6 @@ async def test_alloydb_omni_default_config(
51
51
  assert postgres_password == "super-secret"
52
52
 
53
53
 
54
- @pytest.mark.xfail
55
54
  async def test_alloydb_omni_services(
56
55
  docker_ip: str,
57
56
  alloydb_omni_service: DockerServiceRegistry,
@@ -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,