Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 172 for foo (0.23 sec)

  1. tests/test_tutorial/test_body/test_tutorial001.py

            "tax": None,
        }
    
    
    def test_post_with_str_float_description_tax(client: TestClient):
        response = client.post(
            "/items/",
            json={"name": "Foo", "price": "50.5", "description": "Some Foo", "tax": 0.3},
        )
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": "Some Foo",
            "tax": 0.3,
        }
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (7)
  2. tests/test_query.py

        assert response.status_code == 200
        assert response.json() == "foo bar"
    
    
    def test_query_int_optional_query_50():
        response = client.get("/query/int/optional?query=50")
        assert response.status_code == 200
        assert response.json() == "foo bar 50"
    
    
    def test_query_int_optional_query_foo():
        response = client.get("/query/int/optional?query=foo")
        assert response.status_code == 422
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         *
         * Relies on the fact that in such references only the last qualifier refers to the
         * actual extension callable, and the part before that refers to the receiver type (either fully
         * or partially qualified).
         *
         * For example, `foo.Foo.bar` may only refer to the extension callable `bar` with
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  4. .cm/plugins/filters/byCodeowner/ignore/index.js

            // > For example, "**/foo" matches file or directory "foo" anywhere,
            // > the same as pattern "foo".
            // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
            // >   under directory "foo".
            // Notice that the '*'s have been replaced as '\\*'
            /^\^*\\\*\\\*\\\//,
    
            // '**/foo' <-> 'foo'
            () => '^(?:.*\\/)?'
        ],
    
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. tests/main.py

        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/int/default")
    def get_query_type_int_default(query: int = 10):
        return f"foo bar {query}"
    
    
    @app.get("/query/param")
    def get_query_param(query=Query(default=None)):
        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/param-required")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java

            // these are local
            assertFalse(DefaultMirrorSelector.isExternalRepo(getRepo("foo", "http://localhost:8080")));
            assertFalse(DefaultMirrorSelector.isExternalRepo(getRepo("foo", "http://127.0.0.1:9090")));
            assertFalse(DefaultMirrorSelector.isExternalRepo(getRepo("foo", "file://localhost/somepath")));
            assertFalse(DefaultMirrorSelector.isExternalRepo(getRepo("foo", "file://localhost/D:/somepath")));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

         *
         * Examples of calls:
         *
         * - `|foo.Bar<...>|` - true
         * - `foo.|Bar|<...>` - true
         * - `foo.|B|ar<...>` - true
         * - `|foo|.Bar<...>` - false
         * - `foo.Bar|<...>|` - false
         */
        private val KtUserType.inSelection: Boolean
            get() {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

       */
      public void testArraysAsList() {
        List<String> ourWay = Lists.newArrayList("foo", "bar", "baz");
        List<String> otherWay = asList("foo", "bar", "baz");
    
        // They're logically equal
        assertEquals(ourWay, otherWay);
    
        // The result of Arrays.asList() is mutable
        otherWay.set(0, "FOO");
        assertEquals("FOO", otherWay.get(0));
    
        // But it can't grow
        try {
          otherWay.add("nope");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  9. docs/tr/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ListsTest.java

       */
      public void testArraysAsList() {
        List<String> ourWay = Lists.newArrayList("foo", "bar", "baz");
        List<String> otherWay = asList("foo", "bar", "baz");
    
        // They're logically equal
        assertEquals(ourWay, otherWay);
    
        // The result of Arrays.asList() is mutable
        otherWay.set(0, "FOO");
        assertEquals("FOO", otherWay.get(0));
    
        // But it can't grow
        try {
          otherWay.add("nope");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
Back to top