pytest-databases 0.2.2__tar.gz → 0.2.3__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.2.2 → pytest_databases-0.2.3}/PKG-INFO +1 -1
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/pyproject.toml +1 -1
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/docker-compose.yml +47 -47
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/.gitignore +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/.pre-commit-config.yaml +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/.sourcery.yaml +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/.vscode/settings.json +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/CODEOWNERS +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/CONTRIBUTING.rst +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/LICENSE +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/Makefile +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/README.md +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/requirements/requirements-dev.txt +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/requirements/requirements-docs.txt +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/requirements/requirements.txt +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/scripts/__init__.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/scripts/build_docs.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/scripts/convert_docs.sh +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/sonar-project.properties +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/__init__.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/__metadata__.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/__init__.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/cockroachdb.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/dragonfly.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/keydb.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/mariadb.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/mssql.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/mysql.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/oracle.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/postgres.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/redis.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/spanner.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/helpers.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/py.typed +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/__init__.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/conftest.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/__init__.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_cockroachdb.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_dragonfly.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_keydb.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_mariadb.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_mssql.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_mysql.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_oracle.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_postgres.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/tests/docker/test_redis.py +0 -0
- {pytest_databases-0.2.2 → pytest_databases-0.2.3}/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.2.
|
|
3
|
+
Version: 0.2.3
|
|
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
|
{pytest_databases-0.2.2 → pytest_databases-0.2.3}/src/pytest_databases/docker/docker-compose.yml
RENAMED
|
@@ -4,52 +4,52 @@ services:
|
|
|
4
4
|
- default
|
|
5
5
|
image: postgres:12
|
|
6
6
|
ports:
|
|
7
|
-
- "${POSTGRES12_PORT}:5432" # use a non-standard port here
|
|
7
|
+
- "${POSTGRES12_PORT:-5423}:5432" # use a non-standard port here
|
|
8
8
|
environment:
|
|
9
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
9
|
+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-super-secret}
|
|
10
10
|
postgres13:
|
|
11
11
|
networks:
|
|
12
12
|
- default
|
|
13
13
|
image: postgres:13
|
|
14
14
|
ports:
|
|
15
|
-
- "${POSTGRES13_PORT}:5432" # use a non-standard port here
|
|
15
|
+
- "${POSTGRES13_PORT:-5424}:5432" # use a non-standard port here
|
|
16
16
|
environment:
|
|
17
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
17
|
+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-super-secret}
|
|
18
18
|
postgres14:
|
|
19
19
|
networks:
|
|
20
20
|
- default
|
|
21
21
|
image: postgres:14
|
|
22
22
|
ports:
|
|
23
|
-
- "${POSTGRES14_PORT}:5432" # use a non-standard port here
|
|
23
|
+
- "${POSTGRES14_PORT:-5425}:5432" # use a non-standard port here
|
|
24
24
|
environment:
|
|
25
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
25
|
+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-super-secret}
|
|
26
26
|
postgres15:
|
|
27
27
|
networks:
|
|
28
28
|
- default
|
|
29
29
|
image: postgres:15
|
|
30
30
|
ports:
|
|
31
|
-
- "${POSTGRES15_PORT}:5432" # use a non-standard port here
|
|
31
|
+
- "${POSTGRES15_PORT:-5426}:5432" # use a non-standard port here
|
|
32
32
|
environment:
|
|
33
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
33
|
+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-super-secret}
|
|
34
34
|
postgres16:
|
|
35
35
|
networks:
|
|
36
36
|
- default
|
|
37
37
|
image: postgres:16
|
|
38
38
|
ports:
|
|
39
|
-
- "${POSTGRES16_PORT}:5432" # use a non-standard port here
|
|
39
|
+
- "${POSTGRES16_PORT:-5427}:5432" # use a non-standard port here
|
|
40
40
|
environment:
|
|
41
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
41
|
+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-super-secret}
|
|
42
42
|
mariadb113:
|
|
43
43
|
networks:
|
|
44
44
|
- default
|
|
45
45
|
image: mariadb:11.3
|
|
46
46
|
ports:
|
|
47
|
-
- "${MARIADB113_PORT}:3306" # use a non-standard port here
|
|
47
|
+
- "${MARIADB113_PORT:-3359}:3306" # use a non-standard port here
|
|
48
48
|
environment:
|
|
49
|
-
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
50
|
-
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
|
51
|
-
MARIADB_USER: ${MARIADB_USER}
|
|
52
|
-
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
|
49
|
+
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-super-secret}
|
|
50
|
+
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-super-secret}
|
|
51
|
+
MARIADB_USER: ${MARIADB_USER:-app}
|
|
52
|
+
MARIADB_DATABASE: ${MARIADB_DATABASE:-db}
|
|
53
53
|
MARIADB_ROOT_HOST: "%"
|
|
54
54
|
LANG: C.UTF-8
|
|
55
55
|
mysql8:
|
|
@@ -57,12 +57,12 @@ services:
|
|
|
57
57
|
- default
|
|
58
58
|
image: mysql:latest
|
|
59
59
|
ports:
|
|
60
|
-
- "${MYSQL8_PORT}:3306" # use a non-standard port here
|
|
60
|
+
- "${MYSQL8_PORT:-3360}:3306" # use a non-standard port here
|
|
61
61
|
environment:
|
|
62
|
-
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
63
|
-
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
64
|
-
MYSQL_USER: ${MYSQL_USER}
|
|
65
|
-
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
62
|
+
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-super-secret}
|
|
63
|
+
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-super-secret}
|
|
64
|
+
MYSQL_USER: ${MYSQL_USER:-app}
|
|
65
|
+
MYSQL_DATABASE: ${MYSQL_DATABASE:-db}
|
|
66
66
|
MYSQL_ROOT_HOST: "%"
|
|
67
67
|
LANG: C.UTF-8
|
|
68
68
|
mysql57:
|
|
@@ -70,12 +70,12 @@ services:
|
|
|
70
70
|
- default
|
|
71
71
|
image: mysql:5.7
|
|
72
72
|
ports:
|
|
73
|
-
- "${MYSQL57_PORT}:3306" # use a non-standard port here
|
|
73
|
+
- "${MYSQL57_PORT:-3362}:3306" # use a non-standard port here
|
|
74
74
|
environment:
|
|
75
|
-
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
76
|
-
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
77
|
-
MYSQL_USER: ${MYSQL_USER}
|
|
78
|
-
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
75
|
+
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-super-secret}
|
|
76
|
+
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-super-secret}
|
|
77
|
+
MYSQL_USER: ${MYSQL_USER:-app}
|
|
78
|
+
MYSQL_DATABASE: ${MYSQL_DATABASE:-db}
|
|
79
79
|
MYSQL_ROOT_HOST: "%"
|
|
80
80
|
LANG: C.UTF-8
|
|
81
81
|
mysql56:
|
|
@@ -83,12 +83,12 @@ services:
|
|
|
83
83
|
- default
|
|
84
84
|
image: mysql:5.6
|
|
85
85
|
ports:
|
|
86
|
-
- "${MYSQL56_PORT}:3306" # use a non-standard port here
|
|
86
|
+
- "${MYSQL56_PORT:-3363}:3306" # use a non-standard port here
|
|
87
87
|
environment:
|
|
88
|
-
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
89
|
-
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
90
|
-
MYSQL_USER: ${MYSQL_USER}
|
|
91
|
-
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
88
|
+
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-super-secret}
|
|
89
|
+
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-super-secret}
|
|
90
|
+
MYSQL_USER: ${MYSQL_USER:-app}
|
|
91
|
+
MYSQL_DATABASE: ${MYSQL_DATABASE:-db}
|
|
92
92
|
MYSQL_ROOT_HOST: "%"
|
|
93
93
|
LANG: C.UTF-8
|
|
94
94
|
oracle18c:
|
|
@@ -96,21 +96,21 @@ services:
|
|
|
96
96
|
- default
|
|
97
97
|
image: gvenzl/oracle-xe:18-slim-faststart
|
|
98
98
|
ports:
|
|
99
|
-
- "${ORACLE18C_PORT}:1521" # use a non-standard port here
|
|
99
|
+
- "${ORACLE18C_PORT:-1514}:1521" # use a non-standard port here
|
|
100
100
|
environment:
|
|
101
|
-
ORACLE_PASSWORD: ${ORACLE_SYSTEM_PASSWORD}
|
|
102
|
-
APP_USER_PASSWORD: ${ORACLE_PASSWORD}
|
|
103
|
-
APP_USER: ${ORACLE_USER}
|
|
101
|
+
ORACLE_PASSWORD: ${ORACLE_SYSTEM_PASSWORD:-super-secret}
|
|
102
|
+
APP_USER_PASSWORD: ${ORACLE_PASSWORD:-super-secret}
|
|
103
|
+
APP_USER: ${ORACLE_USER:-app}
|
|
104
104
|
oracle23c:
|
|
105
105
|
networks:
|
|
106
106
|
- default
|
|
107
107
|
image: gvenzl/oracle-free:23-slim-faststart
|
|
108
108
|
ports:
|
|
109
|
-
- "${ORACLE23C_PORT}:1521" # use a non-standard port here
|
|
109
|
+
- "${ORACLE23C_PORT:-1513}:1521" # use a non-standard port here
|
|
110
110
|
environment:
|
|
111
|
-
ORACLE_PASSWORD: ${ORACLE_SYSTEM_PASSWORD}
|
|
112
|
-
APP_USER_PASSWORD: ${ORACLE_PASSWORD}
|
|
113
|
-
APP_USER: ${ORACLE_USER}
|
|
111
|
+
ORACLE_PASSWORD: ${ORACLE_SYSTEM_PASSWORD:-super-secret}
|
|
112
|
+
APP_USER_PASSWORD: ${ORACLE_PASSWORD:-super-secret}
|
|
113
|
+
APP_USER: ${ORACLE_USER:-app}
|
|
114
114
|
mssql2022:
|
|
115
115
|
networks:
|
|
116
116
|
- default
|
|
@@ -125,7 +125,7 @@ services:
|
|
|
125
125
|
spanner:
|
|
126
126
|
image: gcr.io/cloud-spanner-emulator/emulator:latest
|
|
127
127
|
ports:
|
|
128
|
-
- "${SPANNER_PORT}:9010"
|
|
128
|
+
- "${SPANNER_PORT:-9010}:9010"
|
|
129
129
|
# Init (Create Instance)
|
|
130
130
|
spanner_init:
|
|
131
131
|
image: gcr.io/google.com/cloudsdktool/cloud-sdk:332.0.0-slim
|
|
@@ -136,9 +136,9 @@ services:
|
|
|
136
136
|
gcloud config set auth/disable_credentials true &&
|
|
137
137
|
gcloud spanner instances create $${INSTANCE_NAME} --config=emulator-config --description=Emulator --nodes=1'
|
|
138
138
|
environment:
|
|
139
|
-
PROJECT_ID: ${GOOGLE_CLOUD_PROJECT}
|
|
140
|
-
INSTANCE_NAME: ${SPANNER_INSTANCE}
|
|
141
|
-
DATABASE_NAME: ${SPANNER_DATABASE}
|
|
139
|
+
PROJECT_ID: ${GOOGLE_CLOUD_PROJECT:-emulator-test-project}
|
|
140
|
+
INSTANCE_NAME: ${SPANNER_INSTANCE:-test-instance}
|
|
141
|
+
DATABASE_NAME: ${SPANNER_DATABASE:-test-database}
|
|
142
142
|
depends_on:
|
|
143
143
|
- spanner
|
|
144
144
|
cockroachdb:
|
|
@@ -147,9 +147,9 @@ services:
|
|
|
147
147
|
restart: "no"
|
|
148
148
|
expose:
|
|
149
149
|
- "8080"
|
|
150
|
-
- "${COCKROACHDB_PORT}"
|
|
150
|
+
- "${COCKROACHDB_PORT:-26257}"
|
|
151
151
|
ports:
|
|
152
|
-
- "${COCKROACHDB_PORT}:26257"
|
|
152
|
+
- "${COCKROACHDB_PORT:-26257}:26257"
|
|
153
153
|
- "8880:8080"
|
|
154
154
|
healthcheck:
|
|
155
155
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
|
|
@@ -159,17 +159,17 @@ services:
|
|
|
159
159
|
redis:
|
|
160
160
|
image: redis
|
|
161
161
|
ports:
|
|
162
|
-
- "${REDIS_PORT}:6379"
|
|
162
|
+
- "${REDIS_PORT:-6397}:6379"
|
|
163
163
|
keydb:
|
|
164
164
|
image: eqalpha/keydb
|
|
165
165
|
ports:
|
|
166
|
-
- "${KEYDB_PORT}:6379"
|
|
166
|
+
- "${KEYDB_PORT:-6396}:6379"
|
|
167
167
|
dragonfly:
|
|
168
168
|
image: "docker.dragonflydb.io/dragonflydb/dragonfly"
|
|
169
169
|
ulimits:
|
|
170
170
|
memlock: -1
|
|
171
171
|
ports:
|
|
172
|
-
- "${DRAGONFLY_PORT}:6379"
|
|
172
|
+
- "${DRAGONFLY_PORT:-6398}:6379"
|
|
173
173
|
# For better performance, consider `host` mode instead `port` to avoid docker NAT.
|
|
174
174
|
# `host` mode is NOT currently supported in Swarm Mode.
|
|
175
175
|
# https://docs.docker.com/compose/compose-file/compose-file-v3/#network_mode
|
|
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
|
{pytest_databases-0.2.2 → pytest_databases-0.2.3}/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
|
|
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
|