Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for tag6 (0.01 sec)

  1. tests/test_tutorial/test_query_param_models/test_tutorial001.py

                "limit": 10,
                "offset": 5,
                "order_by": "updated_at",
                "tags": ["tag1", "tag2"],
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "limit": 10,
            "offset": 5,
            "order_by": "updated_at",
            "tags": ["tag1", "tag2"],
        }
    
    
    def test_query_param_model_defaults(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial002.py

            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_patch_all(client: TestClient):
        response = client.patch(
            "/items/foo",
            json={
                "name": "Fooz",
                "description": "Item description",
                "price": 3,
                "tax": 10.5,
                "tags": ["tag1", "tag2"],
            },
        )
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_param_models/test_tutorial002.py

                "limit": 10,
                "offset": 5,
                "order_by": "updated_at",
                "tags": ["tag1", "tag2"],
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "limit": 10,
            "offset": 5,
            "order_by": "updated_at",
            "tags": ["tag1", "tag2"],
        }
    
    
    def test_query_param_model_defaults(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py

        "tutorial004": dedent("""
            Create an item with all the information:
    
            - **name**: each item must have a name
            - **description**: a long description
            - **price**: required
            - **tax**: if the item doesn't have tax, you can omit this
            - **tags**: a set of unique tag strings for this item
        """).strip(),
    }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. fastapi/openapi/models.py

        webhooks: Optional[dict[str, Union[PathItem, Reference]]] = None
        components: Optional[Components] = None
        security: Optional[list[dict[str, list[str]]]] = None
        tags: Optional[list[Tag]] = None
        externalDocs: Optional[ExternalDocumentation] = None
    
    
    Schema.model_rebuild()
    Operation.model_rebuild()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_path_operation_configurations/test_tutorial002.py

                "price": 42.0,
                "tax": 3.2,
                "tags": ["bar", "baz"],
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Foo",
            "description": "Item description",
            "price": 42.0,
            "tax": 3.2,
            "tags": IsList("bar", "baz", check_order=False),
        }
    
    
    def test_get_items(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_operation_configurations/test_tutorial001.py

                "price": 42.0,
                "tax": 3.2,
                "tags": ["bar", "baz"],
            },
        )
        assert response.status_code == 201, response.text
        assert response.json() == {
            "name": "Foo",
            "description": "Item description",
            "price": 42.0,
            "tax": 3.2,
            "tags": IsList("bar", "baz", check_order=False),
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_response_model/test_tutorial001_tutorial001_01.py

            {
                "name": "Portal Gun",
                "description": None,
                "price": 42.0,
                "tags": [],
                "tax": None,
            },
            {
                "name": "Plumbus",
                "description": None,
                "price": 32.0,
                "tags": [],
                "tax": None,
            },
        ]
    
    
    def test_create_item(client: TestClient):
        item_data = {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. tests/test_forms_single_model.py

                "lastname": "Sanchez",
                "age": "70",
                "tags": ["plumbus", "citadel"],
                "with": "something",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "Rick",
            "lastname": "Sanchez",
            "age": 70,
            "tags": ["plumbus", "citadel"],
            "with": "something",
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                                "title": "Tax",
                                "anyOf": [{"type": "number"}, {"type": "null"}],
                            },
                            "tags": {
                                "title": "Tags",
                                "default": [],
                                "type": "array",
                                "items": {"type": "string"},
                                "uniqueItems": True,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top