Skip to content

Commit ff2e5b7

Browse files
committed
CCM-12616: test
1 parent 36b94ec commit ff2e5b7

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

utils/event-publisher-py/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ test:
1010
poetry run pytest event_publisher/__tests__/ -v
1111

1212
coverage:
13-
@cd ../.. && poetry -C utils/event-publisher-py run pytest utils/event-publisher-py/event_publisher/__tests__/ \
13+
cd ../.. && poetry -C utils/event-publisher-py run pytest utils/event-publisher-py/event_publisher/__tests__/ \
1414
--cov=utils/event-publisher-py/event_publisher \
15-
--cov-config=utils/event-publisher-py/pytest.ini \
1615
--cov-report=html:utils/event-publisher-py/htmlcov \
1716
--cov-report=term-missing \
1817
--cov-report=xml:utils/event-publisher-py/coverage.xml \

utils/event-publisher-py/pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ pytest-cov = "^6.0.0"
2121
pytest-mock = "^3.14.0"
2222
moto = "^5.0.0"
2323

24+
[tool.coverage.run]
25+
relative_files = true
26+
omit = [
27+
"*/__tests__/*",
28+
"*/test_*.py",
29+
"*/__pycache__/*",
30+
"*/venv/*",
31+
"*/.venv/*",
32+
"*/env/*"
33+
]
34+
2435
[build-system]
2536
requires = ["poetry-core>=1.0.0"]
2637
build-backend = "poetry.core.masonry.api"

utils/event-publisher-py/pytest.ini

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,4 @@ python_files = test_*.py
33
python_classes = Test*
44
python_functions = test_*
55
testpaths = event_publisher/__tests__
6-
addopts =
7-
-v
8-
--tb=short
9-
--strict-markers
10-
11-
[tool:pytest]
12-
testpaths = event_publisher/__tests__
13-
14-
[coverage:run]
15-
relative_files = True
16-
omit =
17-
*/__tests__/*
18-
*/test_*.py
19-
*/__pycache__/*
20-
*/venv/*
21-
*/.venv/*
22-
*/env/*
6+
addopts = -v --tb=short

0 commit comments

Comments
 (0)