- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for file_content (0.15 seconds)
-
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) -
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) -
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) -
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) -
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) -
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) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleReleaseNotesPlugin.java
task.getReleaseNotes().set(extension.getReleaseNotes().getMarkdownFile()); task.getMilestone().convention(project.getProviders().fileContents(project.getIsolated().getRootProject().getProjectDirectory().file("version.txt")).getAsText().map(String::trim)); }); Configuration jquery = project.getConfigurations().create("jquery", conf -> {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri May 16 18:26:52 GMT 2025 - 6.2K bytes - Click Count (0) -
docs/de/docs/advanced/advanced-dependencies.md
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) -
docs/ru/docs/advanced/advanced-dependencies.md
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) -
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)