Skip to content

Commit f894c01

Browse files
authored
Tests: Use shared fixtures, increase test coverage (#341)
Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
1 parent 7a908f2 commit f894c01

48 files changed

Lines changed: 4396 additions & 5253 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/pynumaflow/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ lint: format
1717
test:
1818
uv run pytest tests/ -rA
1919

20+
test-unit:
21+
uv run pytest tests/ -m "not integration" -rA
22+
23+
test-integration:
24+
uv run pytest tests/ -m integration -rA
25+
26+
test-debug:
27+
uv run pytest tests/ -rA --log-cli-level=DEBUG
28+
2029

2130
setup:
2231
uv sync --all-groups

packages/pynumaflow/pyproject.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Repository = "https://github.com/numaproj/numaflow-python"
3838

3939
[dependency-groups]
4040
dev = [
41-
"pytest>=7.2.1",
41+
"pytest>=9.0.2",
4242
"pytest-cov>=3.0",
4343
"black>=23.1",
4444
"grpcio-testing>=1.48.1",
@@ -84,6 +84,16 @@ exclude = '''
8484
)/
8585
'''
8686

87+
[tool.pytest]
88+
strict = true
89+
collect_imported_tests = false
90+
console_output_style = "times"
91+
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
92+
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
93+
markers = [
94+
"integration: tests that start real gRPC servers on Unix sockets (slower)",
95+
]
96+
8797
[tool.ruff]
8898
line-length = 100
8999
src = ["pynumaflow", "tests", "examples"]
@@ -94,4 +104,6 @@ extend-exclude = [
94104
"*_pb2*.py",
95105
"*.pyi"
96106
]
107+
108+
[tool.ruff.lint]
97109
select = ["E", "F", "UP"]

packages/pynumaflow/pytest.ini

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)