Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for file_content (0.06 seconds)

  1. tests/test_file_and_form_order_issue_9116.py

    
    @app.post("/file_before_form")
    def file_before_form(
        file: bytes = File(),
        city: str = Form(),
    ):
        return {"file_content": file, "city": city}
    
    
    @app.post("/file_after_form")
    def file_after_form(
        city: str = Form(),
        file: bytes = File(),
    ):
        return {"file_content": file, "city": city}
    
    
    @app.post("/file_list_before_form")
    def file_list_before_form(
        files: Annotated[list[bytes], File()],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

    import org.junit.Test
    
    class ${className} extends AbstractAutoTestedSamplesTest {
        private static final String FILE_CONTENT = '''
            ${fileContent}
        '''
        @Test
        void runSamples() {
            runSamplesFromFile(new File('${file.relativePath.toString().replace("\\", "/")}'), FILE_CONTENT)
        }
    }
    """
            )
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Dec 19 06:44:41 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial007.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial007_py39 import app
    
    client = TestClient(app)
    
    
    def test_get():
        fake_content = b"some fake video bytes"
        response = client.get("/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 269 bytes
    - Click Count (0)
  4. docs_src/dependencies/tutorial011_py39.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 504 bytes
    - Click Count (0)
  5. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

    /**
     * Returns the trimmed contents of the file at the given [path] after
     * marking the file as a build logic input.
     */
    fun Project.trimmedContentsOfFile(path: String): Provider<String> =
        providers.fileContents(repoRoot().file(path)).asText.map { it.trim() }
    
    // TODO Simplify the buildTimestamp() calculation if possible
    fun Project.buildTimestamp(): Provider<String> =
        providers.of(BuildTimestampValueSource::class) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Oct 30 16:56:31 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Create test files and subdirectories
            CIFSContext fileContext = createFreshContext();
            String dirPath = baseUrl + "shared/listdir_" + timestamp + "/";
            SmbFile file1 = new SmbFile(dirPath + "file1.txt", fileContext);
            file1.createNewFile();
            file1.close();
    
            SmbFile file2 = new SmbFile(dirPath + "file2.txt", fileContext);
            file2.createNewFile();
            file2.close();
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  7. docs/de/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
    
    Und auf diese Weise können wir unsere Abhängigkeit „parametrisieren“, die jetzt `"bar"` enthält, als das Attribut `checker.fixed_content`.
    
    ## Die Instanz als Abhängigkeit verwenden { #use-the-instance-as-a-dependency }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 17:32:56 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  8. docs/ru/docs/advanced/advanced-dependencies.md

    Мы можем создать экземпляр этого класса так:
    
    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
    
    Так мы «параметризуем» нашу зависимость: теперь внутри неё хранится "bar" в атрибуте `checker.fixed_content`.
    
    ## Используем экземпляр как зависимость { #use-the-instance-as-a-dependency }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  9. docs/en/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
    
    And that way we are able to "parameterize" our dependency, that now has `"bar"` inside of it, as the attribute `checker.fixed_content`.
    
    ## Use the instance as a dependency { #use-the-instance-as-a-dependency }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  10. docs/es/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
    
    Y de esa manera podemos "parametrizar" nuestra dependencia, que ahora tiene `"bar"` dentro de ella, como el atributo `checker.fixed_content`.
    
    ## Usar la instance como una dependencia { #use-the-instance-as-a-dependency }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 9.8K bytes
    - Click Count (0)
Back to Top