Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mundobien2025_fastapi-basekit /tests /test_base_response.py
| import pytest | |
| from fastapi_basekit.schema.base import BaseResponse, BasePaginationResponse | |
| pydantic = pytest.importorskip("pydantic") | |
| def test_base_response_defaults(): | |
| resp = BaseResponse(data={"id": 1}) | |
| assert resp.message == "Operación exitosa" | |
| assert resp.status == "success" | |
| assert resp.data == {"id": 1} | |
| def test_base_pagination_response(): | |
| resp = BasePaginationResponse( | |
| data=[1, 2], pagination={"page": 1, "count": 2, "total": 2} | |
| ) | |
| assert resp.pagination["total"] == 2 | |
| assert resp.data == [1, 2] | |
Xet Storage Details
- Size:
- 550 Bytes
- Xet hash:
- 0170b94ed113b1a2a35021f2df86e6d91609906813cfdd3bc354d460a2717c25
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.