Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for io (0.33 sec)

  1. tests/test_datastructures.py

    import io
    from pathlib import Path
    from typing import List
    
    import pytest
    from fastapi import FastAPI, UploadFile
    from fastapi.datastructures import Default
    from fastapi.testclient import TestClient
    
    
    # TODO: remove when deprecating Pydantic v1
    def test_upload_file_invalid():
        with pytest.raises(ValueError):
            UploadFile.validate("not a Starlette UploadFile")
    
    
    def test_upload_file_invalid_pydantic_v2():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. fastapi/applications.py

                    Boolean indicating if debug tracebacks should be returned on server
                    errors.
    
                    Read more in the
                    [Starlette docs for Applications](https://www.starlette.io/applications/#instantiating-the-application).
                    """
                ),
            ] = False,
            routes: Annotated[
                Optional[List[BaseRoute]],
                Doc(
                    """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top