Skip to content

Commit b1dd6c2

Browse files
authored
test: re-enable model generation test on Python 3.15 (#1204)
datamodel-code-generator supports Python 3.15 since 0.85.0 (datamodel-code-generator/datamodel-code-generator#4609), so the 3.15 skip on `test_model_generation_pipeline` can go. The dev dependency floor moves to `>=0.85.0`; the lockfile already pins 0.87.0. Closes: #1127 *✍️ Drafted by Claude Code*
1 parent 2681511 commit b1dd6c2

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dev = [
5353
# See https://github.com/apify/apify-client-python/pull/582/ for more details.
5454
# We explicitly constrain black>=24.3.0 to override the transitive dependency.
5555
"black>=24.3.0",
56-
"datamodel-code-generator[http,ruff]>=0.64.1,<1.0.0",
56+
"datamodel-code-generator[http,ruff]>=0.85.0,<1.0.0",
5757
"griffe<3.0.0",
5858
"poethepoet<1.0.0",
5959
"pre-commit<5.0.0",

‎tests/unit/test_model_generation.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import sys
66
from typing import TYPE_CHECKING
77

8-
import pytest
9-
108
from scripts.postprocess_generated_models import (
119
REPO_ROOT,
1210
RESOURCE_INPUT_TYPEDDICTS,
@@ -58,10 +56,6 @@ def run_datamodel_codegen(*args: str) -> None:
5856
)
5957

6058

61-
@pytest.mark.skipif(
62-
sys.version_info >= (3, 15),
63-
reason='datamodel-code-generator fails to import on Python 3.15 (koxudaxi/datamodel-code-generator#4609)',
64-
)
6559
def test_model_generation_pipeline(tmp_path: Path) -> None:
6660
"""The `generate-models` pipeline (both codegen passes and post-processing) runs on a minimal spec."""
6761
# PR CI never runs `poe generate-models`, so this catches a dependency update that breaks the generator.

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)