Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for DEF (0.02 sec)

  1. tests/test_generate_unique_id_function.py

                }
            },
        }
    
    
    def test_warn_duplicate_operation_id():
        def broken_operation_id(route: APIRoute):
            return "foo"
    
        app = FastAPI(generate_unique_id_function=broken_operation_id)
    
        @app.post("/")
        def post_root(item1: Item):
            return item1  # pragma: nocover
    
        @app.post("/second")
        def post_second(item1: Item):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. fastapi/param_functions.py

        from fastapi import Depends, FastAPI
    
        app = FastAPI()
    
    
        async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
            return {"q": q, "skip": skip, "limit": limit}
    
    
        @app.get("/items/")
        async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
            return commons
        ```
        """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response1.body.source().readUtf8(3)).isEqualTo("ABC")
        assertThat(response2.body.source().readUtf8(3)).isEqualTo("GHI")
        assertThat(response1.body.source().readUtf8(3)).isEqualTo("DEF")
        assertThat(response2.body.source().readUtf8(3)).isEqualTo("JKL")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
        response1.close()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  4. tests/test_application.py

            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 52.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_test.cc

          "      value: 'error_op:out'"
          "    }";
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          tensorflow::str_util::StringReplace(func_str, "__OP_NAME__", op_name,
                                              /*replace_all=*/true),
          &def));
      return def.SerializeAsString();
    }
    
    TEST(CAPI, ExecuteOpAndFunctionWithError) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  6. tensorflow/BUILD

        deps = tf_custom_op_library_additional_deps_impl(),
    )
    
    # Get a DEF file generated by parsing all object files
    # of tf_custom_op_library_additional_deps.so
    filegroup(
        name = "tensorflow_def_file",
        srcs = [":tf_custom_op_library_additional_deps.dll"],
        output_group = "def_file",
    )
    
    # Filter the DEF file to reduce the number of symbols to 64K or less.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 16 05:28:35 UTC 2024
    - 53.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       * | :--------------------- | :----------- |
       * | `http://host/`         | null         |
       * | `http://host/#`        | `""`         |
       * | `http://host/#abc`     | `"abc"`      |
       * | `http://host/#abc|def` | `"abc|def"`  |
       */
      @get:JvmName("fragment") val fragment: String?,
      /** Canonical URL. */
      private val url: String,
    ) {
      val isHttps: Boolean
        get() = scheme == "https"
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  8. cmd/object-api-multipart_test.go

    		// Valid object and bucket names but non-existent bucket.
    		{bucketName: "abc", objName: "def", uploadID: resN.UploadID, PartID: 1, expectedError: fmt.Errorf("%s", "Bucket not found: abc")},
    		// Test Case - 7.
    		// Existing bucket, but using a bucket on which NewMultipartUpload is not Initiated.
    		{bucketName: "unused-bucket", objName: "def", uploadID: "xyz", PartID: 1, expectedError: fmt.Errorf("%s", "Invalid upload id xyz")},
    		// Test Case - 8.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    	}
    	if s, err := buf.Peek(2); string(s) != "de" || err != nil {
    		t.Fatalf("want %q got %q, err=%v", "de", string(s), err)
    	}
    	if _, err := buf.Read(p[0:3]); string(p[0:3]) != "def" || err != nil {
    		t.Fatalf("want %q got %q, err=%v", "def", string(p[0:3]), err)
    	}
    	if s, err := buf.Peek(4); string(s) != "ghij" || err != nil {
    		t.Fatalf("want %q got %q, err=%v", "ghij", string(s), err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    		{
    			srcVol:          "success-vol",
    			srcPath:         "abc",
    			expectedListDir: []string{"def/", "xyz/"},
    			expectedErr:     nil,
    		},
    		// TestXLStorage case - 1.
    		// valid case with existing volume and file to delete.
    		{
    			srcVol:          "success-vol",
    			srcPath:         "abc/def",
    			expectedListDir: []string{"ghi/"},
    			expectedErr:     nil,
    		},
    		// TestXLStorage case - 1.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top