Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Gerber (0.27 sec)

  1. tests/test_include_router_defaults_overrides.py

                            "500": {"description": "Server error level 0"},
                            "501": {"description": "Server error level 1"},
                            "502": {"description": "Server error level 2"},
                            "503": {"description": "Server error level 3"},
                            "504": {"description": "Server error level 4"},
                            "505": {"description": "Server error level 5"},
                        },
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial008d_an.py

        )
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008d_an import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial008d.py

        )
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008d import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_path_params/test_tutorial005.py

                "detail": [
                    {
                        "ctx": {"enum_values": ["alexnet", "resnet", "lenet"]},
                        "loc": ["path", "model_name"],
                        "msg": "value is not a valid enumeration member; permitted: 'alexnet', 'resnet', 'lenet'",
                        "type": "type_error.enum",
                    }
                ]
            }
        )
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  5. scripts/docs.py

        typer.echo("Make sure you run the build-all command first.")
        os.chdir("site")
        server_address = ("", 8008)
        server = HTTPServer(server_address, SimpleHTTPRequestHandler)
        typer.echo("Serving at: http://127.0.0.1:8008")
        server.serve_forever()
    
    
    @app.command()
    def live(
        lang: str = typer.Argument(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  6. tests/test_openapi_servers.py

    from dirty_equals import IsOneOf
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI(
        servers=[
            {"url": "/", "description": "Default, relative server"},
            {
                "url": "http://staging.localhost.tiangolo.com:8000",
                "description": "Staging but actually localhost still",
            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    def foo():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. fastapi/openapi/utils.py

            }
        },
    }
    
    status_code_ranges: Dict[str, str] = {
        "1XX": "Information",
        "2XX": "Success",
        "3XX": "Redirection",
        "4XX": "Client Error",
        "5XX": "Server Error",
        "DEFAULT": "Default Response",
    }
    
    
    def get_openapi_security_definitions(
        flat_dependant: Dependant,
    ) -> Tuple[Dict[str, Any], List[Dict[str, Any]]]:
        security_definitions = {}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  8. tests/test_exception_handlers.py

    
    def test_override_server_error_exception_raises():
        with pytest.raises(RuntimeError):
            client.get("/server-error")
    
    
    def test_override_server_error_exception_response():
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/server-error")
        assert response.status_code == 500
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Feb 17 12:40:12 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  9. docs/sts/client-grants.py

        s3.meta.client.upload_fileobj(data,
                                      'testbucket',
                                      'hosts',
                                      ExtraArgs={'ServerSideEncryption': 'AES256'})
    
    # Upload with server side encryption, using temporary credentials
    s3.meta.client.upload_file('/etc/hosts',
                               'testbucket',
                               'hosts',
    Python
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  10. docs_src/sql_databases/sql_app_py39/alt_main.py

    models.Base.metadata.create_all(bind=engine)
    
    app = FastAPI()
    
    
    @app.middleware("http")
    async def db_session_middleware(request: Request, call_next):
        response = Response("Internal server error", status_code=500)
        try:
            request.state.db = SessionLocal()
            response = await call_next(request)
        finally:
            request.state.db.close()
        return response
    
    
    # Dependency
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.9K bytes
    - Viewed (0)
Back to top