File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ dev = [
7878 " google-auth" ,
7979 " google-cloud-bigquery" ,
8080 " google-cloud-bigquery-storage" ,
81- " httpx " ,
81+ " httpx2 " ,
8282 " mypy~=1.13.0" ,
8383 " numpy" ,
8484 " pandas-stubs" ,
Original file line number Diff line number Diff line change 77import pytest
88from fastapi import FastAPI
99from fastapi .testclient import TestClient
10- from httpx import ASGITransport , AsyncClient
10+ from httpx2 import ASGITransport , AsyncClient
1111from pytest_mock .plugin import MockerFixture
1212
1313from sqlmesh .core .context import Context
Original file line number Diff line number Diff line change 33import typing as t
44
55from fastapi import HTTPException
6- from starlette .status import HTTP_422_UNPROCESSABLE_ENTITY
6+ from starlette .status import HTTP_422_UNPROCESSABLE_CONTENT
77
88from sqlmesh .utils .date import now_timestamp
99from web .server .models import ApiExceptionPayload
@@ -14,7 +14,7 @@ def __init__(
1414 self ,
1515 origin : str ,
1616 message : str ,
17- status_code : int = HTTP_422_UNPROCESSABLE_ENTITY ,
17+ status_code : int = HTTP_422_UNPROCESSABLE_CONTENT ,
1818 trigger : t .Optional [str ] = None ,
1919 ):
2020 super ().__init__ (status_code )
Original file line number Diff line number Diff line change 99import pyarrow as pa # type: ignore
1010from fastapi import Depends , HTTPException
1111from starlette .responses import StreamingResponse
12- from starlette .status import HTTP_404_NOT_FOUND , HTTP_422_UNPROCESSABLE_ENTITY
12+ from starlette .status import HTTP_404_NOT_FOUND , HTTP_422_UNPROCESSABLE_CONTENT
1313
1414from sqlmesh .core import constants as c
1515from web .server .console import api_console
@@ -45,7 +45,7 @@ def func_wrapper() -> R:
4545 message = "An unexpected error occurred" ,
4646 origin = "API -> utils -> run_in_executor" ,
4747 trigger = "An unexpected error occurred" ,
48- status_code = HTTP_422_UNPROCESSABLE_ENTITY ,
48+ status_code = HTTP_422_UNPROCESSABLE_CONTENT ,
4949 )
5050 )
5151 raise e
You can’t perform that action at this time.
0 commit comments