Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 300 for isNice (0.1 sec)

  1. tests/test_tutorial/test_extra_data_types/test_tutorial001.py

                            ),
                            "process_after": IsDict(
                                {
                                    "title": "Process After",
                                    "type": "string",
                                    "format": "duration",
                                }
                            )
                            | IsDict(
                                # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dataclasses/test_tutorial001.py

        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "float_parsing",
                        "loc": ["body", "price"],
                        "msg": "Input should be a valid number, unable to parse string as a number",
                        "input": "invalid price",
                    }
                ]
            }
        ) | IsDict(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. tests/test_regex_deprecated_body.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from typing_extensions import Annotated
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(DeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
                q: Annotated[str | None, Form(regex="^fixedquery$")] = None,
            ):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_extra_data_types/test_tutorial001_py310.py

                            ),
                            "process_after": IsDict(
                                {
                                    "title": "Process After",
                                    "type": "string",
                                    "format": "duration",
                                }
                            )
                            | IsDict(
                                # TODO: remove when deprecating Pydantic v1
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_schema_extra_example/test_tutorial004.py

                            "description": IsDict(
                                {
                                    "title": "Description",
                                    "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
    - 6.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_multiple_params/test_tutorial001.py

        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "int_parsing",
                        "loc": ["path", "item_id"],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py310.py

        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "int_parsing",
                        "loc": ["path", "item_id"],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py310.py

                            "description": IsDict(
                                {
                                    "title": "Description",
                                    "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
    - 7.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial005.py

                        ],
                        "requestBody": {
                            "content": {
                                "application/json": {
                                    "schema": IsDict({"$ref": "#/components/schemas/Item"})
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "allOf": [
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py310.py

                        ],
                        "requestBody": {
                            "content": {
                                "application/json": {
                                    "schema": IsDict({"$ref": "#/components/schemas/Item"})
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "allOf": [
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top