-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtox.ini
63 lines (54 loc) · 1.7 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 =
py{311,310,39,38,37}
docs
style
skip_missing_interpreters = true
[testenv]
deps =
pytest == 6.2.4
pytest-mock == 3.6.1
pytest-cov == 2.12.1
commands =
# -v: verbose
# -rsxX: show extra test summary info for (s)skipped, (x)failed, (X)passed
# -l: show locals in tracebacks
# --tb=short: short traceback print mode
# --strict: marks not registered in configuration file raise errors
# --ignore=tests/integration: exclude integration tests
pytest --cov=py42 --cov-report xml --cov-report term -v -rsxX -l --tb=short --strict --ignore=tests/integration
[testenv:docs]
deps =
sphinx == 8.1.3
myst-parser == 4.0.0
sphinx_rtd_theme == 3.0.2
docutils == 0.21.2
whitelist_externals = bash
commands =
sphinx-build -W -b html -d "{envtmpdir}/doctrees" docs "{envtmpdir}/html"
bash -c "open {envtmpdir}/html/index.html || true"
[testenv:style]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:integration]
commands =
pytest -v -rsxX -l --tb=short --strict-markers -m integration
[pytest]
markers =
integration: mark test as a integration test
alert_id = 1cae9f92-5fd7-4504-b363-9bc45015adaa
device_id = 251691
observer_rule_id = d52cbfe0-f9de-468e-afbe-3c91037322da
# securitydata
md5_hash = 202cb962ac59075b964b07152d234b70
sha256_hash = a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3
user_uid = 984118686188300065
file_data = 123
# archive
device_guid = 935873453596901068
destination_device_guid = 673679195225718785
archive_guid = 912100293346985227
path = C:/
# case
case_event_id = 0_1d71796f-af5b-4231-9d8e-df6434da4663_984418168383179707_986472569691401170_12