Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 112 for baz (0.16 sec)

  1. docs_src/body_updates/tutorial002_py39.py

        tax: float = 10.5
        tags: list[str] = []
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
        "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
    }
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_item(item_id: str):
        return items[item_id]
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        assertThat(result).asList().containsExactly("foo", "bar").inOrder();
      }
    
      public void testPrependTwoElements() {
        String[] result = ObjectArrays.concat("foo", new String[] {"bar", "baz"});
        assertThat(result).asList().containsExactly("foo", "bar", "baz").inOrder();
      }
    
      public void testAppendZeroElements() {
        String[] result = ObjectArrays.concat(new String[] {}, "foo");
        assertThat(result).asList().contains("foo");
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/MultiIteratorTest.java

     *
     */
    public class MultiIteratorTest {
    
        /**
         *
         */
        @Test
        public void test() {
            final List<String> list1 = asList("Foo", "Bar");
            final List<String> list2 = asList("Baz");
    
            @SuppressWarnings("unchecked")
            final Iterator<String> it = new MultiIterator<String>(list1.iterator(), list2.iterator());
    
            assertThat(it.hasNext(), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_dependencies/test_tutorial004_py310.py

                        {"item_name": "Bar"},
                        {"item_name": "Baz"},
                    ]
                },
            ),
            (
                "/items?q=foo",
                200,
                {
                    "items": [
                        {"item_name": "Foo"},
                        {"item_name": "Bar"},
                        {"item_name": "Baz"},
                    ],
                    "q": "foo",
                },
            ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. tests/test_serialize_response.py

    
    @app.get("/items/validlist", response_model=List[Item])
    def get_validlist():
        return [
            {"name": "foo"},
            {"name": "bar", "price": 1.0},
            {"name": "baz", "price": 2.0, "owner_ids": [1, 2, 3]},
        ]
    
    
    client = TestClient(app)
    
    
    def test_valid():
        response = client.get("/items/valid")
        response.raise_for_status()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Aug 03 12:29:07 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  6. docs_src/body_updates/tutorial002_py310.py

        tax: float = 10.5
        tags: list[str] = []
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
        "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
    }
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_item(item_id: str):
        return items[item_id]
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1010 bytes
    - Viewed (0)
  7. docs_src/response_model/tutorial004_py310.py

        tax: float = 10.5
        tags: list[str] = []
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
        "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
    }
    
    
    @app.get("/items/{item_id}", response_model=Item, response_model_exclude_unset=True)
    async def read_item(item_id: str):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 595 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial004_an_py310.py

                        {"item_name": "Bar"},
                        {"item_name": "Baz"},
                    ]
                },
            ),
            (
                "/items?q=foo",
                200,
                {
                    "items": [
                        {"item_name": "Foo"},
                        {"item_name": "Bar"},
                        {"item_name": "Baz"},
                    ],
                    "q": "foo",
                },
            ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial004_an.py

                        {"item_name": "Bar"},
                        {"item_name": "Baz"},
                    ]
                },
            ),
            (
                "/items?q=foo",
                200,
                {
                    "items": [
                        {"item_name": "Foo"},
                        {"item_name": "Bar"},
                        {"item_name": "Baz"},
                    ],
                    "q": "foo",
                },
            ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        sink.writeLines(ImmutableList.of("foo", "bar", "baz"), "\n");
        assertEquals("foo\nbar\nbaz\n", sink.getString());
      }
    
      public void testWriteLines_withDefaultSeparator() throws IOException {
        sink.writeLines(ImmutableList.of("foo", "bar", "baz"));
        String separator = System.getProperty("line.separator");
        assertEquals("foo" + separator + "bar" + separator + "baz" + separator, sink.getString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top