- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 1,550 for oper (0.03 sec)
-
tests/test_tutorial/test_request_files/test_tutorial001_02.py
with path.open("rb") as file: response = client.post("/files/", files={"file": file}) assert response.status_code == 200, response.text assert response.json() == {"file_size": 14} def test_post_upload_file(tmp_path: Path, client: TestClient): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") with path.open("rb") as file:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
internal/s3select/json/preader_test.go
) func TestNewPReader(t *testing.T) { files, err := os.ReadDir("testdata") if err != nil { t.Fatal(err) } for _, file := range files { t.Run(file.Name(), func(t *testing.T) { f, err := os.Open(filepath.Join("testdata", file.Name())) if err != nil { t.Fatal(err) } r := NewPReader(f, &ReaderArgs{}) var record sql.Record for { record, err = r.Read(record) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.5K bytes - Viewed (0) -
internal/s3select/json/reader_test.go
) func TestNewReader(t *testing.T) { files, err := os.ReadDir("testdata") if err != nil { t.Fatal(err) } for _, file := range files { t.Run(file.Name(), func(t *testing.T) { f, err := os.Open(filepath.Join("testdata", file.Name())) if err != nil { t.Fatal(err) } r := NewReader(f, &ReaderArgs{}) var record sql.Record for { record, err = r.Read(record) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.4K bytes - Viewed (0) -
internal/ioutil/append-file_windows.go
) // AppendFile - appends the file "src" to the file "dst" func AppendFile(dst string, src string, osync bool) error { appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666) if err != nil { return err } defer appendFile.Close() srcFile, err := lock.Open(src, os.O_RDONLY, 0o666) if err != nil { return err } defer srcFile.Close() _, err = io.Copy(appendFile, srcFile) return err
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 1.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2.java
/** * MSRPC implementation for opening an LSA policy handle. * This class provides functionality to open a handle to the LSA policy * database on a remote server using the LSA RPC interface. */ public class MsrpcLsarOpenPolicy2 extends lsarpc.LsarOpenPolicy2 { /** * Creates a new request to open an LSA policy handle. * * @param server the server name to connect toRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (0) -
tests/test_custom_middleware_exception.py
def test_custom_middleware_exception(tmp_path: Path): default_pydantic_max_size = 2**16 path = tmp_path / "test.txt" path.write_bytes(b"x" * (default_pydantic_max_size + 1)) with client: with open(path, "rb") as file: response = client.post("/middleware", files={"file": file}) assert response.status_code == 422, response.text assert response.json() == { "detail": {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Aug 25 21:44:40 UTC 2022 - 2.8K bytes - Viewed (0) -
docs/zh/docs/advanced/events.md
此处,`shutdown` 事件处理器函数在 `log.txt` 中写入一行文本 `Application shutdown`。 /// info | 说明 `open()` 函数中,`mode="a"` 指的是**追加**。因此这行文本会添加在文件已有内容之后,不会覆盖之前的内容。 /// /// tip | 提示 注意,本例使用 Python `open()` 标准函数与文件交互。 这个函数执行 I/O(输入/输出)操作,需要等待内容写进磁盘。 但 `open()` 函数不支持使用 `async` 与 `await`。 因此,声明事件处理函数要使用 `def`,不能使用 `asnyc def`。 /// ### `startup` 和 `shutdown` 一起使用
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString()); assertThrows(IllegalStateException.class, () -> hasher.putInt(42)); } public void testHashTwice() { Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher(); assertEquals( "9753980fe94daa8ecaa82216519393a9", hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
public long length() { return 0; } @Override public int getFileIndex() { return 0; } } @Test @DisplayName("open(): invalid URL path without trailing slash throws SmbException") void invalidUrlPathThrows() throws Exception { // Override the default setup for this specific test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
docs/de/docs/advanced/openapi-callbacks.md
Der tatsächliche Callback-Code hängt stark von Ihrer eigenen API-Anwendung ab. Und er wird wahrscheinlich von Anwendung zu Anwendung sehr unterschiedlich sein. Es könnten nur eine oder zwei Codezeilen sein, wie zum Beispiel: ```Python callback_url = "https://example.com/api/v1/invoices/events/" httpx.post(callback_url, json={"description": "Invoice paid", "paid": True}) ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 13:54:34 UTC 2025 - 9.2K bytes - Viewed (0)