Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 476 for isNice (0.15 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial001_an_py39.py

                                "required": False,
                                "schema": IsDict(
                                    {
                                        "anyOf": [{"type": "string"}, {"type": "null"}],
                                        "title": "Q",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params/test_tutorial006_py310.py

                                "required": False,
                                "schema": IsDict(
                                    {
                                        "anyOf": [{"type": "integer"}, {"type": "null"}],
                                        "title": "Limit",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.2K bytes
    - Viewed (7)
  3. tests/test_tutorial/test_request_files/test_tutorial002_py39.py

        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
                        "loc": ["body", "files"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/antmigration/SamplesAntImportIntegrationTest.groovy

            succeeds('retrieveRuntimeDependencies')
    
            then: "The JARs are copied to the destination directory"
            dslDir.file('build/libs/our-custom.jar').isFile()
            dslDir.file('build/libs/awesome-framework-2.0.jar').isFile()
            dslDir.file('build/libs/utility-library-1.0.jar').isFile()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("antMigration/fileDeps")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial003_an_py39.py

                            "client_id": IsDict(
                                {
                                    "title": "Client Id",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                }
                            )
                            | IsDict(
                                # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. tests/test_openapi_examples.py

    from typing import Union
    
    from dirty_equals import IsDict
    from fastapi import Body, Cookie, FastAPI, Header, Path, Query
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        data: str
    
    
    @app.post("/examples/")
    def examples(
        item: Item = Body(
            examples=[
                {"data": "Data in Body examples, example1"},
            ],
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 17K bytes
    - Viewed (0)
  7. tests/test_additional_properties_bool.py

    from typing import Union
    
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi._compat import PYDANTIC_V2
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    
    
    class FooBaseModel(BaseModel):
        if PYDANTIC_V2:
            model_config = ConfigDict(extra="forbid")
        else:
    
            class Config:
                extra = "forbid"
    
    
    class Foo(FooBaseModel):
        pass
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_header_params/test_tutorial001_an_py310.py

                                "required": False,
                                "schema": IsDict(
                                    {
                                        "anyOf": [{"type": "string"}, {"type": "null"}],
                                        "title": "User-Agent",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_header_params/test_tutorial002_an_py39.py

                                "required": False,
                                "schema": IsDict(
                                    {
                                        "anyOf": [{"type": "string"}, {"type": "null"}],
                                        "title": "Strange Header",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py39.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.query_params_str_validations.tutorial011_an_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_multi_query_values(client: TestClient):
        url = "/items/?q=foo&q=bar"
        response = client.get(url)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top