- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for crear (0.01 sec)
-
docs/es/docs/advanced/dataclasses.md
<img src="/img/tutorial/dataclasses/image01.png"> ## Dataclasses en Estructuras de Datos Anidadas { #dataclasses-in-nested-data-structures } También puedes combinar `dataclasses` con otras anotaciones de tipos para crear estructuras de datos anidadas. En algunos casos, todavía podrías tener que usar la versión de `dataclasses` de Pydantic. Por ejemplo, si tienes errores con la documentación de la API generada automáticamente.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial001.py
from sqlmodel import SQLModel, create_engine from sqlmodel.main import default_registry from tests.utils import needs_py310 def clear_sqlmodel(): # Clear the tables in the metadata for the default base model SQLModel.metadata.clear() # Clear the Models associated with the registry, to avoid warnings default_registry.dispose() @pytest.fixture( name="client", params=[
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 14K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial002.py
from sqlmodel import SQLModel, create_engine from sqlmodel.main import default_registry from tests.utils import needs_py310 def clear_sqlmodel(): # Clear the tables in the metadata for the default base model SQLModel.metadata.clear() # Clear the Models associated with the registry, to avoid warnings default_registry.dispose() @pytest.fixture( name="client", params=[
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 17.9K bytes - Viewed (0) -
docs/zh/llm-prompt.md
### Target language Translate to Simplified Chinese (简体中文). Language code: zh. ### Grammar and tone 1) Use clear, concise technical Chinese consistent with existing docs. 2) Address the reader naturally (commonly using “你/你的”). ### Headings 1) Follow existing Simplified Chinese heading style (short and descriptive). 2) Do not add trailing punctuation to headings.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:49:08 UTC 2025 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial002.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.dataclasses_.{request.param}") client = TestClient(mod.app) client.headers.clear() return client def test_get_item(client: TestClient): response = client.get("/items/next") assert response.status_code == 200 assert response.json() == { "name": "Island In The Moon",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 2.9K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial005.py
), ], ) def test_get(path, cookie, expected_status, expected_response, client: TestClient): if cookie is not None: client.cookies.set("last_query", cookie) else: client.cookies.clear() response = client.get(path) assert response.status_code == expected_status assert response.json() == expected_response def test_openapi_schema(client: TestClient):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.5K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial001.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.dataclasses_.{request.param}") client = TestClient(mod.app) client.headers.clear() return client def test_post_item(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": 3}) assert response.status_code == 200 assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 4.6K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.dataclasses_.{request.param}") client = TestClient(mod.app) client.headers.clear() return client def test_post_authors_item(client: TestClient): response = client.post( "/authors/foo/items/", json=[{"name": "Bar"}, {"name": "Baz", "description": "Drop the Baz"}], )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_additional_responses/test_tutorial002.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.additional_responses.{request.param}") client = TestClient(mod.app) client.headers.clear() return client def test_path_operation(client: TestClient): response = client.get("/items/foo") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 4.7K bytes - Viewed (0) -
tests/test_tutorial/test_additional_responses/test_tutorial004.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.additional_responses.{request.param}") client = TestClient(mod.app) client.headers.clear() return client def test_path_operation(client: TestClient): response = client.get("/items/foo") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 4.9K bytes - Viewed (0)