- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for desc (0.12 sec)
-
tests/test_filter_pydantic_sub_model_pv2.py
return {"name": name, "description": "model-a-desc", "foo": model_c} client = TestClient(app) return client @needs_pydanticv2 def test_filter_sub_model(client: TestClient): response = client.get("/model/modelA") assert response.status_code == 200, response.text assert response.json() == { "name": "modelA", "description": "model-a-desc", "foo": {"username": "test-user"}, }
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 6.3K bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model/app_pv1.py
@app.get("/model/{name}", response_model=ModelA) async def get_model_a(name: str, model_c=Depends(get_model_c)):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 784 bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py
response = client.get("/model/modelA") assert response.status_code == 200, response.text assert response.json() == { "name": "modelA", "description": "model-a-desc", "model_b": {"username": "test-user"}, } @needs_pydanticv1 def test_validator_is_cloned(client: TestClient): with pytest.raises(ResponseValidationError) as err:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.5K bytes - Viewed (0) -
scripts/mkdocs_hooks.py
if potential_path.is_file(): files.append( EnFile( path=item, src_dir=str(en_src_dir), dest_dir=config.site_dir, use_directory_urls=config.use_directory_urls, ) ) def resolve_files(*, items: List[Any], files: Files, config: MkDocsConfig) -> None:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 5.1K bytes - Viewed (0)