Buckets:

download
raw
395 Bytes
import pytest
from fastapi_basekit.exceptions.api_exceptions import APIException
fastapi = pytest.importorskip("fastapi")
def test_api_exception_attributes():
exc = APIException(
message="msg", status_code="CODE", status=500, data={"k": "v"}
)
assert exc.message == "msg"
assert exc.status_code == "CODE"
assert exc.status == 500
assert exc.data == {"k": "v"}

Xet Storage Details

Size:
395 Bytes
·
Xet hash:
76892ae81c47fe1933818284cee852d8889fd582cd1bc36698724b5b210dc58d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.