Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for myproduct (0.05 sec)

  1. tests/hooks_test.go

    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(map[string]interface{}{"Name": "Product New3", "code": "L1213"})
    
    	if product.Name != "Product New3" || product.Price != 220 || product.Code != "L1213" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. tests/test_request_body_parameters_media_type.py

    
    # NOTE: These are not valid JSON:API resources
    # but they are fine for testing requestBody with custom media_type
    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    async def create_product(data: Product = Body(media_type=media_type, embed=True)):
        pass  # pragma: no cover
    
    
    @app.post("/shops")
    async def create_shop(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. tests/test_get_request_body.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Product(BaseModel):
        name: str
        description: str = None  # type: ignore
        price: float
    
    
    @app.get("/product")
    async def create_item(product: Product):
        return product
    
    
    client = TestClient(app)
    
    
    def test_get_with_body():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         *       <td>{@code /home/user/myproject/target/classes}</td>
         *       <td>{@code /home/user/myproject/target/classes}</td>
         *       <td>No explicit path → use output directory</td>
         *     </tr>
         *     <tr>
         *       <td>{@code Optional.of(Path.of("META-INF"))}</td>
         *       <td>{@code /home/user/myproject/target/classes}</td>
         *       <td>{@code /home/user/myproject/target/classes/META-INF}</td>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/BigIntegerMath.java

          // If it won't fit in a long, then we store off the intermediate product.
          if (normalizedBits + productBits >= Long.SIZE) {
            bignums.add(BigInteger.valueOf(product));
            product = 1;
            productBits = 0;
          }
          product *= normalizedNum;
          productBits = LongMath.log2(product, FLOOR) + 1;
        }
        // Check for leftovers.
        if (product > 1) {
          bignums.add(BigInteger.valueOf(product));
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. tests/serializer_test.go

    	}
    
    	// Test creating record with nil any field
    	product := ProductWithAny{Name: "Product 1"}
    	if err := DB.Create(&product).Error; err != nil {
    		t.Fatalf("failed to create product with nil any field, got error %v", err)
    	}
    
    	// Test updating/saving record with nil any field (should not panic)
    	product.Name = "Product 1 (Updated)"
    	if err := DB.Save(&product).Error; err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

            when(project.getBasedir()).thenReturn(Path.of("myproject"));
            when(project.getOutputDirectory(any(ProjectScope.class))).thenCallRealMethod();
    
            assertEquals(Path.of("myproject", "target", "classes"), targetPath(project));
    
            scope = ProjectScope.TEST;
            assertEquals(Path.of("myproject", "target", "test-classes"), targetPath(project));
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Oct 26 17:22:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. dbflute_fess/dfprop/sequenceMap.dfprop

    #     ; MEMBER       = SEQ_MEMBER
    #     ; MEMBER_LOGIN = SEQ_MEMBER_LOGIN
    #     ; PRODUCT      = SEQ_PRODUCT
    # }
    #
    # *The line that starts with '#' means comment-out.
    #
    map:{
        #; PURCHASE     = SEQ_PURCHASE
        #; MEMBER       = SEQ_MEMBER
        #; MEMBER_LOGIN = SEQ_MEMBER_LOGIN
        #; PRODUCT      = SEQ_PRODUCT
    }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Oct 31 23:35:14 UTC 2015
    - 717 bytes
    - Viewed (0)
  9. apache-maven/src/main/appended-resources/META-INF/NOTICE.vm

    Google Guice - Core Library Copyright 2006-2022 Google, Inc. This product includes software developed at The Apache Software Foundation (http://www.apache.org/). META-INF/NOTICE in archive lib/plexus-utils-3.2.1.jar This product includes software developed by the Indiana University Extreme! Lab (http://www.extreme.indiana.edu/). This product includes software developed by The Apache Software Foundation (http://www.apache.org/). This product includes software developed by ThoughtWorks (http://www.thoughtworks.com)....
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Sep 10 19:27:25 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. LICENSE

    of the particular user or of the way in which the particular user
    actually uses, or expects or is expected to use, the product.  A product
    is a consumer product regardless of whether the product has substantial
    commercial, industrial or non-consumer uses, unless such uses represent
    the only significant mode of use of the product.
    
      "Installation Information" for a User Product means any methods,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 33.7K bytes
    - Viewed (0)
Back to top