Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 8,154 for pfile (0.02 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial001_an_py39.py

        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py39
    def test_post_large_file(tmp_path, client: TestClient):
        default_pydantic_max_size = 2**16
        path = tmp_path / "test.txt"
        path.write_bytes(b"x" * (default_pydantic_max_size + 1))
    
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

    /*
     * Copyright (C) 2018 Square, Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/events.md

    ```Python hl_lines="1  13"
    {!../../docs_src/events/tutorial003.py!}
    ```
    
    **🔑 👨‍💼** 🐍 🕳 👈 👆 💪 ⚙️ `with` 📄, 🖼, `open()` 💪 ⚙️ 🔑 👨‍💼:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    ⏮️ ⏬ 🐍, 📤 **🔁 🔑 👨‍💼**. 👆 🔜 ⚙️ ⚫️ ⏮️ `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. ci/official/containers/ml_build/builder.packages.txt

    # Packages to be installed for the new Docker image.
    
    # Packages needed to build devtoolset
    file
    flex
    g++
    make
    patch
    rpm2cpio
    unar
    wget
    xz-utils
    cpio
    
    # Other build-related tools
    apt-transport-https
    autoconf
    automake
    build-essential
    ca-certificates
    llvm-18
    clang-18
    clang-tidy-18
    lld-18
    clang-format-12
    curl
    git
    parallel
    sudo
    swig
    unzip
    zip
    openjdk-21-jdk
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 11 22:54:10 UTC 2024
    - 360 bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/net/URLUtilTest.java

            assertEquals("file", URLUtil.toCanonicalProtocol("file"));
        }
    
        /**
         * @throws Exception
         */
        public void testToFile() throws Exception {
            final File file = new File("Program Files/hoge.txt");
            final URL url = file.toURI().toURL();
            assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     * the smb URL syntax.
     *
     * @param file An <code>SmbFile</code> specifying the file to read from
     */
    
        public SmbFileInputStream( SmbFile file ) throws SmbException, MalformedURLException, UnknownHostException {
            this( file, SmbFile.O_RDONLY );
        }
    
        SmbFileInputStream( SmbFile file, int openFlags ) throws SmbException, MalformedURLException, UnknownHostException {
            this.file = file;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  7. cni/test/install_k8s_test.go

    			chainedCNIPlugin:       true,
    			resultFileName:         "01-calico.conflist",
    			expectedOutputFile:     testDataDir + "/expected/10-calico.conflist-istioconfig",
    			expectedPostCleanFile:  testDataDir + "/pre/calico.conflist",
    			cniConfDirOrderedFiles: []string{"non_json.conf", "calico.conflist", "minikube_cni.conf"},
    		},
    		{
    			name:                   "Skip invalid .conf file for first valid .conf file",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 30 23:59:49 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

         * Creates a new source backed by the specified file.
         *
         * @param file The file, must not be {@code null}.
         * @deprecated Use {@link #FileSource(Path)} instead.
         */
        @Deprecated
        public FileSource(File file) {
            this(Objects.requireNonNull(file, "file cannot be null").toPath());
        }
    
        /**
         * Creates a new source backed by the specified file.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/MoreFilesTest.java

    import java.nio.file.FileSystems;
    import java.nio.file.FileVisitResult;
    import java.nio.file.Files;
    import java.nio.file.NoSuchFileException;
    import java.nio.file.Path;
    import java.nio.file.SimpleFileVisitor;
    import java.nio.file.attribute.BasicFileAttributes;
    import java.nio.file.attribute.FileTime;
    import java.util.EnumSet;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.Future;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

                    }
                }
        }
    
        /**
         * Zip a list of files with same root directory to a zip file.
         *
         * @param destZip the target zip file
         * @param srcFiles the mapping of relative path to the file
         */
        private
        fun zip(destZip: File, srcFiles: List<Pair<String, File>>) {
            if (srcFiles.isEmpty()) {
                return
            }
            destZip.parentFile.mkdirs()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jul 28 16:19:47 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top