Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 244 for My (0.05 sec)

  1. docs_src/extra_models/tutorial003.py

        type: str = "car"
    
    
    class PlaneItem(BaseItem):
        type: str = "plane"
        size: int
    
    
    items = {
        "item1": {"description": "All my friends drive a low rider", "type": "car"},
        "item2": {
            "description": "Music is my aeroplane, it's my aeroplane",
            "type": "plane",
            "size": 5,
        },
    }
    
    
    @app.get("/items/{item_id}", response_model=Union[PlaneItem, CarItem])
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 644 bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/ContextConfigTest.java

        public void testDefaultCredentials() throws CIFSException
        {
            Properties props = new Properties();
            props.put("jcifs.smb.client.domain", "my-domain");
            props.put("jcifs.smb.client.username", "my-default-user-id");
            props.put("jcifs.smb.client.password", "my-default-password");
    
            CIFSContext auth = new BaseContext(new PropertyConfiguration(props));
            assertTrue(auth.hasDefaultCredentials());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. docs/erasure/storage-class/README.md

    if err != nil {
     log.Fatalln(err)
    }
    
    object, err := os.Open("my-testfile")
    if err != nil {
     log.Fatalln(err)
    }
    defer object.Close()
    objectStat, err := object.Stat()
    if err != nil {
     log.Fatalln(err)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. docs_src/extra_models/tutorial004_py39.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str
    
    
    items = [
        {"name": "Foo", "description": "There comes my hero"},
        {"name": "Red", "description": "It's my aeroplane"},
    ]
    
    
    @app.get("/items/", response_model=list[Item])
    async def read_items():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 356 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_extra_models/test_tutorial004_py39.py

        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {"name": "Foo", "description": "There comes my hero"},
            {"name": "Red", "description": "It's my aeroplane"},
        ]
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. docs/bucket/versioning/README.md

          //         .build();
    
          // Create bucket 'my-bucketname' if it doesn`t exist.
          if (!minioClient.bucketExists(BucketExistsArgs.builder().bucket("my-bucketname").build())) {
            minioClient.makeBucket(MakeBucketArgs.builder().bucket("my-bucketname").build());
            System.out.println("my-bucketname is created successfully");
          }
    
          boolean isVersioningEnabled =
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 04 21:43:52 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_extra_models/test_tutorial003_py310.py

        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    @needs_py310
    def test_get_plane(client: TestClient):
        response = client.get("/items/item2")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "Music is my aeroplane, it's my aeroplane",
            "type": "plane",
            "size": 5,
        }
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. callbacks/helper_test.go

    		input  map[string]interface{}
    		expect clause.Values
    	}{
    		{
    			name: "Test convert string value",
    			input: map[string]interface{}{
    				"name": "my name",
    			},
    			expect: clause.Values{
    				Columns: []clause.Column{{Name: "name"}},
    				Values:  [][]interface{}{{"my name"}},
    			},
    		},
    		{
    			name: "Test convert int value",
    			input: map[string]interface{}{
    				"age": 18,
    			},
    			expect: clause.Values{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 05 02:22:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. utils/utils_unix_test.go

    			want: "/go/work/proj/gorm/",
    		},
    		{
    			file: "/go/work/proj/gorm_alias/utils/utils.go",
    			want: "/go/work/proj/gorm_alias/",
    		},
    		{
    			file: "/go/work/proj/my.gorm.io/gorm@v1.2.3/utils/utils.go",
    			want: "/go/work/proj/my.gorm.io/gorm@v1.2.3/",
    		},
    	}
    	for _, c := range cases {
    		s := sourceDir(c.file)
    		if s != c.want {
    			t.Fatalf("%s: expected %s, got %s", c.file, c.want, s)
    		}
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Nov 21 02:48:13 UTC 2022
    - 731 bytes
    - Viewed (0)
  10. utils/utils_windows_test.go

    			want: `C:/go/work/proj/gorm/`,
    		},
    		{
    			file: `C:/go/work/proj/gorm_alias/utils/utils.go`,
    			want: `C:/go/work/proj/gorm_alias/`,
    		},
    		{
    			file: `C:/go/work/proj/my.gorm.io/gorm@v1.2.3/utils/utils.go`,
    			want: `C:/go/work/proj/my.gorm.io/gorm@v1.2.3/`,
    		},
    	}
    	for _, c := range cases {
    		s := sourceDir(c.file)
    		if s != c.want {
    			t.Fatalf("%s: expected %s, got %s", c.file, c.want, s)
    		}
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Nov 21 02:48:13 UTC 2022
    - 715 bytes
    - Viewed (0)
Back to top