- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 283 for Nelson (0.17 sec)
-
tests/test_read_with_orm_mode.py
app = FastAPI() @app.post("/people/", response_model=PersonRead) def create_person(person: PersonCreate) -> Any: db_person = Person.model_validate(person) return db_person client = TestClient(app) person_data = {"name": "Dive", "lastname": "Wilson"} response = client.post("/people/", json=person_data) data = response.json() assert response.status_code == 200, response.text
Python - Registered: Sun Apr 14 07:19:09 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2.4K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl()), ).execute() assertThat(response.body.string()).contains("Peter the person") assertThat(response.protocol).isEqualTo(Protocol.HTTP_1_1) } } @Test fun testUrlConnectionDirect() { testRequest { val url = URI(mockServer.endpoint + "/person?name=peter").toURL()
Plain Text - Registered: Fri Apr 12 11:42:09 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 5.9K bytes - Viewed (0) -
docs_src/python_types/tutorial010.py
class Person: def __init__(self, name: str): self.name = name def get_person_name(one_person: Person):
Python - Registered: Sun Apr 14 07:19:09 GMT 2024 - Last Modified: Fri Jun 12 21:44:23 GMT 2020 - 144 bytes - Viewed (0) -
cni/pkg/repair/repair_test_helpers.go
ExitCode: constants.ValidationErrorCode, Reason: "Error", Message: "Died for some reason", }, }, } brokenInitContainerTerminating = corev1.ContainerStatus{ Name: constants.ValidationContainerName, State: corev1.ContainerState{ Terminated: &corev1.ContainerStateTerminated{ ExitCode: constants.ValidationErrorCode, Reason: "Error", Message: "Died for some reason", },
Go - Registered: Wed Apr 17 22:53:10 GMT 2024 - Last Modified: Fri May 12 17:39:53 GMT 2023 - 4.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt
assertThat(nextEvent()).isEqualTo(Pong(payload)) } fun assertClosing( code: Int, reason: String, ) { assertThat(nextEvent()).isEqualTo(Closing(code, reason)) } fun assertClosed( code: Int, reason: String, ) { assertThat(nextEvent()).isEqualTo(Closed(code, reason)) } fun assertExhausted() { assertThat(events).isEmpty() }
Plain Text - Registered: Fri Apr 12 11:42:09 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java
// ## Arrange ## Locale.setDefault(Locale.JAPANESE); final SQLException sqlException = new SQLException("some reason", "fooState", 7650); final SQLException sqlException2 = new SQLException("hoge reason", "barState", 7660); final SQLException sqlException3 = new SQLException("fuga reason", "bazState", 7670); sqlException.setNextException(sqlException2); sqlException2.setNextException(sqlException3);
Java - Registered: Fri Apr 12 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.2K bytes - Viewed (0) -
tests/utils.py
from fastapi._compat import PYDANTIC_V2 needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9+") needs_py310 = pytest.mark.skipif( sys.version_info < (3, 10), reason="requires python3.10+" ) needs_pydanticv2 = pytest.mark.skipif(not PYDANTIC_V2, reason="requires Pydantic v2")
Python - Registered: Sun Apr 14 07:19:09 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 422 bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt
MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient -> mockServerClient .`when`( request().withPath("/person") .withQueryStringParameter("name", "peter"), ) .respond(response().withBody("Peter the person!")) val client = OkHttpClient.Builder() .proxy(Proxy(SOCKS, InetSocketAddress(socks5Proxy.host, socks5Proxy.firstMappedPort)))
Plain Text - Registered: Fri Apr 12 11:42:09 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt
} /** * Send a close frame with optional code and reason. * * @param code Status code as defined by * [Section 7.4 of RFC 6455](http://tools.ietf.org/html/rfc6455#section-7.4) or `0`. * @param reason Reason for shutting down or `null`. */ @Throws(IOException::class) fun writeClose( code: Int, reason: ByteString?, ) { var payload = ByteString.EMPTY
Plain Text - Registered: Fri Apr 12 11:42:09 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
tests/joins_table_test.go
person := Person{Name: "person", Addresses: []Address{address1, address2}} DB.Create(&person) var addresses1 []Address if err := DB.Model(&person).Association("Addresses").Find(&addresses1); err != nil || len(addresses1) != 2 { t.Fatalf("Failed to find address, got error %v, length: %v", err, len(addresses1)) } if err := DB.Model(&person).Association("Addresses").Delete(&person.Addresses[0]); err != nil {
Go - Registered: Sun Apr 14 09:35:11 GMT 2024 - Last Modified: Thu Sep 10 13:46:18 GMT 2020 - 3.5K bytes - Viewed (0)