- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for PetOut (0.11 sec)
-
tests/test_response_model_data_filter.py
hashed_password: str class PetDB(BaseModel): name: str owner: UserDB class PetOut(BaseModel): name: str owner: UserBase @app.post("/users/", response_model=UserBase) async def create_user(user: UserCreate): return user @app.get("/pets/{pet_id}", response_model=PetOut) async def read_pet(pet_id: int): user = UserDB( email="******@****.***",
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 1.7K bytes - Viewed (0) -
tests/test_response_model_data_filter_no_inheritance.py
email: str class PetDB(BaseModel): name: str owner: UserDB class PetOut(BaseModel): name: str owner: User @app.post("/users/", response_model=User) async def create_user(user: UserCreate): return user @app.get("/pets/{pet_id}", response_model=PetOut) async def read_pet(pet_id: int): user = UserDB( email="******@****.***",
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 1.7K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/util/internal/RedirectStdOutAndErr.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/templates/java-junit5-integration-test-for-application/src/integrationTest/java/org/gradle/sample/integtest/app/MainIntegrationTest.java
@Test public void testMain() { PrintStream savedOut = System.out; try { ByteArrayOutputStream outStreamForTesting = new ByteArrayOutputStream(); System.setOut(new PrintStream(outStreamForTesting)); Main.main(new String[0]); StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println("Hello, World!");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 936 bytes - Viewed (0) -
platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/fixtures/XcodebuildExecutor.java
withArgument(action.toString()); ExecOutput result = findXcodeBuild().execute(args, buildEnvironment(testDirectory)); System.out.println(result.getOut()); return OutputScrapingExecutionResult.from(result.getOut(), result.getError()); } public ExecutionFailure fails() { return fails(XcodeAction.BUILD); } // Xcode 14.2 seems to return the error in the format
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 4.6K bytes - Viewed (0) -
platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/fixtures/MSBuildExecutor.java
ExecOutput result = findMSBuild().execute(args, buildEnvironment(workingDir)); System.out.println(result.getOut()); if (getOutputFiles().isEmpty()) { results.add(OutputScrapingExecutionResult.from(trimLines(result.getOut()), trimLines(result.getError()))); } else { for (ExecutionOutput output : getOutputFiles()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/Testing.kt
) fun standardOutputOf(action: () -> Unit): String = ByteArrayOutputStream().also { val out = System.out try { System.setOut(PrintStream(it, true)) action() } finally { System.setOut(out) } }.toString("utf8").normaliseLineSeparators() fun clickableUrlFor(file: File): String =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.3K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/DotListener.kt
} fun install() { originalSystemOut = System.out originalSystemErr = System.err System.setOut(object : PrintStream(OutputStream.nullOutputStream()) {}) System.setErr(object : PrintStream(OutputStream.nullOutputStream()) {}) } fun uninstall() { originalSystemOut.let { System.setOut(it) } originalSystemErr.let { System.setErr(it) } }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/fixtures/MSBuildVersionLocator.java
throw new IllegalStateException(String.format("Could not determine the location of MSBuild %s: %s", vsVersion.getMajor(), vsWhereOutput.getError())); } String location = vsWhereOutput.getOut().trim(); TestFile msbuild; if (!location.isEmpty()) { msbuild = new TestFile(location).file("MSBuild/" + vsVersion.getMajor() + ".0/Bin/MSBuild.exe"); } else if (vsVersion.getMajor() == 11) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 3.8K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/redirector/DefaultStandardOutputRedirector.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3K bytes - Viewed (0)