Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ dev = [
"google-auth",
"google-cloud-bigquery",
"google-cloud-bigquery-storage",
"httpx",
"httpx2",
"mypy~=1.13.0",
"numpy",
"pandas-stubs",
Expand Down
2 changes: 1 addition & 1 deletion tests/web/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest
from fastapi import FastAPI
from fastapi.testclient import TestClient
from httpx import ASGITransport, AsyncClient
from httpx2 import ASGITransport, AsyncClient
from pytest_mock.plugin import MockerFixture

from sqlmesh.core.context import Context
Expand Down
4 changes: 2 additions & 2 deletions web/server/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typing as t

from fastapi import HTTPException
from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY
from starlette.status import HTTP_422_UNPROCESSABLE_CONTENT

from sqlmesh.utils.date import now_timestamp
from web.server.models import ApiExceptionPayload
Expand All @@ -14,7 +14,7 @@ def __init__(
self,
origin: str,
message: str,
status_code: int = HTTP_422_UNPROCESSABLE_ENTITY,
status_code: int = HTTP_422_UNPROCESSABLE_CONTENT,
trigger: t.Optional[str] = None,
):
super().__init__(status_code)
Expand Down
4 changes: 2 additions & 2 deletions web/server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pyarrow as pa # type: ignore
from fastapi import Depends, HTTPException
from starlette.responses import StreamingResponse
from starlette.status import HTTP_404_NOT_FOUND, HTTP_422_UNPROCESSABLE_ENTITY
from starlette.status import HTTP_404_NOT_FOUND, HTTP_422_UNPROCESSABLE_CONTENT

from sqlmesh.core import constants as c
from web.server.console import api_console
Expand Down Expand Up @@ -45,7 +45,7 @@ def func_wrapper() -> R:
message="An unexpected error occurred",
origin="API -> utils -> run_in_executor",
trigger="An unexpected error occurred",
status_code=HTTP_422_UNPROCESSABLE_ENTITY,
status_code=HTTP_422_UNPROCESSABLE_CONTENT,
)
)
raise e
Expand Down