- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 139 for isFile (0.07 sec)
-
tests/test_tutorial/test_background_tasks/test_tutorial002.py
import os from pathlib import Path from fastapi.testclient import TestClient from docs_src.background_tasks.tutorial002 import app client = TestClient(app) def test(): log = Path("log.txt") if log.is_file(): os.remove(log) # pragma: no cover response = client.post("/send-notification/******@****.***?q=some-query") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 568 bytes - Viewed (0) -
tests/test_tutorial/test_background_tasks/test_tutorial002_an_py310.py
from ...utils import needs_py310 @needs_py310 def test(): from docs_src.background_tasks.tutorial002_an_py310 import app client = TestClient(app) log = Path("log.txt") if log.is_file(): os.remove(log) # pragma: no cover response = client.post("/send-notification/******@****.***?q=some-query") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 631 bytes - Viewed (0) -
tests/test_tutorial/test_background_tasks/test_tutorial002_an_py39.py
from ...utils import needs_py39 @needs_py39 def test(): from docs_src.background_tasks.tutorial002_an_py39 import app client = TestClient(app) log = Path("log.txt") if log.is_file(): os.remove(log) # pragma: no cover response = client.post("/send-notification/******@****.***?q=some-query") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 628 bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
JavaParserFacade.clearInstances() } } private fun generateHtmlReport(versionToIncubating: VersionsToIncubating) { val htmlReport = parameters.htmlReportFile.get().asFile val title = parameters.title.get() htmlReport.parentFile.mkdirs() htmlReport.printWriter(Charsets.UTF_8).use { writer -> writer.println( """<html lang="en"> <head>
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 12.8K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt
println("Tests to be included:\n$content") IncludeTestClassProvider(readTestClasses(content)) } parameters.excludeTestClasses.get().isNotBlank() -> { val content = parameters.repoRoot.file("test-splits/exclude-test-classes.properties").get().asFile.readText() println("Tests to be excluded:\n$content")
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 4.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleClasspath.groovy
@InputArtifact abstract Provider<FileSystemLocation> getArtifact() @Override void transform(TransformOutputs outputs) { File artifactFile = artifact.get().asFile if (artifactFile.name == 'gradle-dependencies') { (artifactFile.listFiles() as List<File>).sort { it.name }.each { outputs.file(it) } } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 1.7K bytes - Viewed (0) -
schema/field.go
if !fieldValue.IsValid() { fieldValue = reflect.New(fieldType) } else if fieldValue.IsNil() { fieldValue.Set(reflect.New(fieldType)) } fieldValue.Elem().Set(reflectV) return } else if reflectValType.ConvertibleTo(fieldType) { if fieldValue.IsNil() { fieldValue.Set(reflect.New(fieldType)) } fieldValue.Elem().Set(reflectV.Convert(fieldType))
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 15 03:20:20 UTC 2024 - 32K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
cos.write(new byte[] { 0, 1, 2, 3, 4 }); assertFalse(cos.done); assertTrue(cos.isInMemory()); cos.close(); assertFalse(cos.done); } @Test public void inFile() throws IOException { ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 }); assertFalse(cos.done);
Registered: Thu Oct 31 02:32:13 UTC 2024 - Last Modified: Mon Nov 14 21:05:19 UTC 2022 - 2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/CleanAcceptedApiChanges.groovy
@InputDirectory abstract DirectoryProperty getJsonFileDirectory() @TaskAction void clean() { def jsonFileManager = new AcceptedApiChangesJsonFileManager() jsonFileDirectory.asFile.get().listFiles() ?.findAll { it.name.endsWith(".json") } ?.each { jsonFileManager.emptyAcceptedApiChanges(it) } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 05 08:27:29 UTC 2024 - 1.6K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/GenerateSubprojectsInfo.kt
@DisableCachingByDefault(because = "Not worth caching") abstract class GenerateSubprojectsInfo : SubprojectsInfo() { @TaskAction fun generateSubprojectsInfo() { subprojectsJson.asFile.writeText(generateSubprojectsJson()) } companion object { internal const val TASK_NAME = "generateSubprojectsInfo" }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 08 13:44:59 UTC 2021 - 1.1K bytes - Viewed (0)