-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
63 lines (49 loc) · 1.1 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tox]
envlist = py3
requires =
tox>=4
[testenv]
description = run tests with pytest
package = wheel
wheel_build_env = .pkg
deps =
[test]
setenv =
SDXLC_HOST = localhost
SDXLC_PORT = 8082
SDXLC_DOMAIN = example.net
SDXLC_NAME = test-sdx-lc
MQ_HOST = localhost
MQ_PORT = 5672
MQ_USER = guest
MQ_PASS = guest
MONGO_USER = guest
MONGO_PASS = guest
MONGO_HOST = localhost
MONGO_PORT = 27017
DB_NAME = test-db
DB_CONFIG_TABLE_NAME = test-table
commands =
pytest --cov=sdx_lc {posargs}
docker =
rabbitmq
mongo
[docker:rabbitmq]
image = rabbitmq:latest
# This will update MQ_HOST in testenv.
host_var = MQ_HOST
# This will update MQ_PORT in testenv.
expose =
MQ_PORT=5672/tcp
healthcheck_cmd = rabbitmq-diagnostics -q ping
[docker:mongo]
image = mongo:7.0.11
# This will update MONGO_HOST in testenv.
host_var = MONGO_HOST
# This will update MONGO_PORT in testenv.
expose =
MONGO_PORT=27017/tcp
environment =
MONGO_INITDB_ROOT_USERNAME=guest
MONGO_INITDB_ROOT_PASSWORD=guest
healthcheck_cmd = mongosh localhost:27017/test --quiet