- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for testUpdate (0.11 sec)
-
tests/test_tutorial/test_additional_status_codes/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.additional_status_codes.tutorial001 import app client = TestClient(app) def test_update(): response = client.put("/items/foo", json={"name": "Wrestlers"}) assert response.status_code == 200, response.text assert response.json() == {"name": "Wrestlers", "size": None} def test_create(): response = client.put("/items/red", json={"name": "Chillies"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 546 bytes - Viewed (0) -
tests/test_tutorial/test_additional_status_codes/test_tutorial001_an.py
from fastapi.testclient import TestClient from docs_src.additional_status_codes.tutorial001_an import app client = TestClient(app) def test_update(): response = client.put("/items/foo", json={"name": "Wrestlers"}) assert response.status_code == 200, response.text assert response.json() == {"name": "Wrestlers", "size": None} def test_create(): response = client.put("/items/red", json={"name": "Chillies"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 549 bytes - Viewed (0) -
tests/test_tutorial/test_additional_status_codes/test_tutorial001_an_py310.py
@pytest.fixture(name="client") def get_client(): from docs_src.additional_status_codes.tutorial001_an_py310 import app client = TestClient(app) return client @needs_py310 def test_update(client: TestClient): response = client.put("/items/foo", json={"name": "Wrestlers"}) assert response.status_code == 200, response.text assert response.json() == {"name": "Wrestlers", "size": None}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 741 bytes - Viewed (0) -
tests/test_tutorial/test_additional_status_codes/test_tutorial001_py310.py
@pytest.fixture(name="client") def get_client(): from docs_src.additional_status_codes.tutorial001_py310 import app client = TestClient(app) return client @needs_py310 def test_update(client: TestClient): response = client.put("/items/foo", json={"name": "Wrestlers"}) assert response.status_code == 200, response.text assert response.json() == {"name": "Wrestlers", "size": None}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 738 bytes - Viewed (0) -
tests/test_tutorial/test_additional_status_codes/test_tutorial001_an_py39.py
@pytest.fixture(name="client") def get_client(): from docs_src.additional_status_codes.tutorial001_an_py39 import app client = TestClient(app) return client @needs_py39 def test_update(client: TestClient): response = client.put("/items/foo", json={"name": "Wrestlers"}) assert response.status_code == 200, response.text assert response.json() == {"name": "Wrestlers", "size": None}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 737 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
doc.put("key9", new ArrayList<Integer>(Arrays.asList(777, 888, 999))); assertEquals(777, DocumentUtil.getValue(doc, "key9", Integer.class)); } public void test_date() { Map<String, Object> doc = new HashMap<>(); Date expected4 = new Date(); doc.put("key4", expected4); assertEquals(expected4, DocumentUtil.getValue(doc, "key4", Date.class)); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java
assertEquals("seg5", itemList3.get(4).getSegmentation()); assertEquals("reading5", itemList3.get(4).getReading()); assertEquals("pos5", itemList3.get(4).getPos()); } public void test_update() { final KuromojiFile kuromojiFile = new KuromojiFile(file1); final PagingList<KuromojiItem> itemList1 = kuromojiFile.selectList(0, 20); assertEquals(3, itemList1.size());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 7.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java
assertEquals("z2", itemList3.get(6).getInputs()[1]); assertEquals("z1", itemList3.get(6).getOutputs()[0]); assertEquals("z2", itemList3.get(6).getOutputs()[1]); } public void test_update() { final SynonymFile synonymFile = new SynonymFile(file1); final PagingList<SynonymItem> itemList1 = synonymFile.selectList(0, 20); assertEquals(5, itemList1.size());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterTest.java
SuggestResponse response2 = suggester.suggest().setSuggestDetail(true).execute().getResponse(); assertEquals(2, response2.getNum()); } @Test public void test_update() throws Exception { SuggestItem[] items = getItemSet1(); suggester.indexer().index(items); suggester.refresh(); SuggestItem[] items2 = getItemSet1();
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 37K bytes - Viewed (0)