mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-04-05 20:57:16 +02:00
test-cleanup: fix 21 failures, prune stale tests, consolidate fragmented files (#66)
Some checks are pending
CI / build (push) Waiting to run
Some checks are pending
CI / build (push) Waiting to run
* test-cleanup: fix 21 failures, prune stale tests, consolidate fragmented files * test-cleanup: remove permanently-skipped M4/perf tests, fix pydantic ConfigDict warning * docs: update changelog and release notes for test-cleanup changes * ci: fix editorial governance workflow stale test file reference
This commit is contained in:
parent
32157179f9
commit
46637cf27f
34 changed files with 5329 additions and 2202 deletions
|
|
@ -2328,6 +2328,7 @@ from .routes import build_wizard as build_wizard_routes # noqa: E402
|
|||
from .routes import build_newflow as build_newflow_routes # noqa: E402
|
||||
from .routes import build_alternatives as build_alternatives_routes # noqa: E402
|
||||
from .routes import build_compliance as build_compliance_routes # noqa: E402
|
||||
from .routes import build_permalinks as build_permalinks_routes # noqa: E402
|
||||
from .routes import configs as config_routes # noqa: E402
|
||||
from .routes import decks as decks_routes # noqa: E402
|
||||
from .routes import setup as setup_routes # noqa: E402
|
||||
|
|
@ -2351,6 +2352,7 @@ app.include_router(build_wizard_routes.router, prefix="/build")
|
|||
app.include_router(build_newflow_routes.router, prefix="/build")
|
||||
app.include_router(build_alternatives_routes.router)
|
||||
app.include_router(build_compliance_routes.router)
|
||||
app.include_router(build_permalinks_routes.router)
|
||||
app.include_router(config_routes.router)
|
||||
app.include_router(decks_routes.router)
|
||||
app.include_router(setup_routes.router)
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ def get_theme_preview(theme_id: str, *, limit: int = 12, colors: Optional[str] =
|
|||
entry = idx.slug_to_entry.get(slug)
|
||||
if not entry:
|
||||
raise KeyError("theme_not_found")
|
||||
detail = project_detail(slug, entry, idx.slug_to_yaml, uncapped=uncapped)
|
||||
detail = project_detail(slug, entry, idx.slug_to_yaml, idx, uncapped=uncapped)
|
||||
colors_key = colors or None
|
||||
commander_key = commander or None
|
||||
cache_key = (slug, limit, colors_key, commander_key, idx.etag)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Defines typed models for all web route inputs with automatic validation.
|
|||
from __future__ import annotations
|
||||
|
||||
from typing import Optional, List
|
||||
from pydantic import BaseModel, Field, field_validator, model_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
|
||||
from enum import Enum
|
||||
|
||||
|
||||
|
|
@ -207,6 +207,4 @@ class DeckExportRequest(BaseModel):
|
|||
include_commanders: bool = Field(default=True, description="Include commanders in export")
|
||||
include_lands: bool = Field(default=True, description="Include lands in export")
|
||||
|
||||
class Config:
|
||||
"""Pydantic configuration."""
|
||||
use_enum_values = True
|
||||
model_config = ConfigDict(use_enum_values=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue