Skip to content

Commit 8fdab64

Browse files
committed
fix: Update pytest to 8.4.1+ for Python 3.14 compatibility and fix import sorting
- Update pytest from 7.0.1 to >=8.4.1 for Python 3.14 compatibility (fixes ast.Str removal) - Add pytest-xdist and pytest-cov to dependencies with proper version constraints - Fix import sorting in test_parallel.py (ruff I001) - All tests passing (199 tests, 99% coverage) - All linting and type checks passing
1 parent b2e9981 commit 8fdab64

File tree

3 files changed

+125
-152
lines changed

3 files changed

+125
-152
lines changed

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ dependencies = [
2727
"defusedxml",
2828
"urllib3",
2929
"xmltodict>=0.12.0",
30-
"pytest",
31-
"pytest-cov",
32-
"coverage",
30+
"pytest>=8.4.1",
31+
"pytest-cov>=6.2.1",
32+
"pytest-xdist>=3.8.0",
33+
"coverage>=7.10.3",
3334
"setuptools",
3435
]
3536

@@ -41,7 +42,10 @@ include = ["json2xml"]
4142

4243
[project.optional-dependencies]
4344
test = [
44-
"pytest==7.0.1",
45+
"pytest>=8.4.1",
46+
"pytest-cov>=6.2.1",
47+
"pytest-xdist>=3.8.0",
48+
"coverage>=7.10.3",
4549
]
4650

4751
[tool.pytest.ini_options]

tests/test_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Tests for parallel processing functionality."""
2-
from typing import TYPE_CHECKING, Any, cast
32
from collections.abc import Sequence
3+
from typing import TYPE_CHECKING, Any, cast
44

55
import pytest
66

0 commit comments

Comments
 (0)