Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 707 for punt (0.03 sec)

  1. tests/test_tutorial/test_body_updates/test_tutorial001.py

            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
            "price": 3,
            "tax": 10.5,
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial001_py310.py

            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    @needs_py310
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
            "price": 3,
            "tax": 10.5,
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_schema_extra_example/test_tutorial001_py310.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    @needs_pydanticv2
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/admin/BadWordTests.java

            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
            final Map<String, Object> updateMap = new HashMap<>();
            updateMap.put(KEY_PROPERTY, NAME_PREFIX + "new");
            return updateMap;
        }
    
        @Test
        void crudTest() {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                if (queries != null && queries.length > 0) {
                    doc.put(HL_CACHE, replaceHighlightQueries(cache, queries));
                } else {
                    doc.put(HL_CACHE, cache);
                }
            } else {
                doc.put(fessConfig.getIndexFieldCache(), StringUtil.EMPTY);
                doc.put(HL_CACHE, StringUtil.EMPTY);
            }
    
            try {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_data_types/test_tutorial001.py

        expected_response.update(
            {
                "start_process": "2018-12-22T14:05:00+00:00",
                "duration": 176_100,
                "item_id": item_id,
            }
        )
        response = client.put(f"/items/{item_id}", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == expected_response
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/RelatedQueryHelper.java

                Map<String, String[]> map = relatedQueryMap.get(key);
                if (map == null) {
                    map = new HashMap<>();
                    relatedQueryMap.put(key, map);
                }
                map.put(toLowerCase(entity.getTerm()), entity.getQueries());
            });
            this.relatedQueryMap = relatedQueryMap;
            return relatedQueryMap.size();
        }
    
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py39.py

        client = TestClient(app)
        return client
    
    
    # Test required and embedded body parameters with no bodies sent
    @needs_py39
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial004_py310.py

        client = TestClient(app)
        return client
    
    
    # Test required and embedded body parameters with no bodies sent
    @needs_py310
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

                return null;
            })).status(Status.OK).result());
        }
    
        // PUT /api/admin/searchlist/doc
        @Execute
        public JsonResponse<ApiResult> put$doc(final CreateBody body) {
            validateApi(body, messages -> {});
            if (body.doc == null) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Wed Jul 24 09:03:45 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top