Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,946 for Avery (0.04 sec)

  1. docs_src/schema_extra_example/tutorial001_py310.py

        price: float
        tax: float | None = None
    
        model_config = {
            "json_schema_extra": {
                "examples": [
                    {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    }
                ]
            }
        }
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 646 bytes
    - Viewed (0)
  2. src/cmd/internal/obj/loong64/asm_test.go

    package loong64
    
    import (
    	"bytes"
    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"testing"
    )
    
    const genBufSize = (1024 * 1024 * 32) // 32MB
    
    // TestLargeBranch generates a large function with a very far conditional
    // branch, in order to ensure that it assembles successfully.
    func TestLargeBranch(t *testing.T) {
    	if testing.Short() {
    		t.Skip("Skipping test in short mode")
    	}
    	testenv.MustHaveGoBuild(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:39:37 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_schema_extra_example/test_tutorial005.py

        return client
    
    
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    def test_openapi_schema(client: TestClient) -> None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py310.py

        return client
    
    
    @needs_py310
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient) -> None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_query_params/test_tutorial006.py

        c = TestClient(app)
        return c
    
    
    def test_foo_needy_very(client: TestClient):
        response = client.get("/items/foo?needy=very")
        assert response.status_code == 200
        assert response.json() == {
            "item_id": "foo",
            "needy": "very",
            "skip": 0,
            "limit": None,
        }
    
    
    def test_foo_no_needy(client: TestClient):
        response = client.get("/items/foo?skip=a&limit=b")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. docs_src/schema_extra_example/tutorial003.py

    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: int,
        item: Item = Body(
            examples=[
                {
                    "name": "Foo",
                    "description": "A very nice Item",
                    "price": 35.4,
                    "tax": 3.2,
                }
            ],
        ),
    ):
        results = {"item_id": item_id, "item": item}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 612 bytes
    - Viewed (0)
  7. build-logic/performance-testing/src/test/kotlin/gradlebuild/performance/tasks/DetermineBaselinesTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.performance.tasks
    
    import gradlebuild.basics.BuildEnvironmentExtension
    import gradlebuild.basics.kotlindsl.execAndGetStdout
    import io.mockk.every
    import io.mockk.mockkStatic
    import io.mockk.unmockkStatic
    import org.gradle.internal.os.OperatingSystem
    // Using star import to workaround https://youtrack.jetbrains.com/issue/KTIJ-24390
    import org.gradle.kotlin.dsl.*
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 09:29:24 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. docs_src/schema_extra_example/tutorial001.py

        tax: Union[float, None] = None
    
        model_config = {
            "json_schema_extra": {
                "examples": [
                    {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    }
                ]
            }
        }
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 684 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py

        return client
    
    
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    def test_openapi_schema(client: TestClient) -> None:
    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_py310.py

        return client
    
    
    @needs_py310
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient) -> None:
    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