Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,271 for Giles (0.19 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial001_02_an.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.request_files.tutorial001_02_an import app
    
    client = TestClient(app)
    
    
    def test_post_form_no_body():
        response = client.post("/files/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "No file sent"}
    
    
    def test_post_uploadfile_no_body():
        response = client.post("/uploadfile/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_files/test_tutorial001_03_an.py

    from fastapi.testclient import TestClient
    
    from docs_src.request_files.tutorial001_03_an import app
    
    client = TestClient(app)
    
    
    def test_post_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. .cm/summary_table.cm

                <td>Files Changed</td>
                <td>% of Total Files Changed</td>
                </tr>
                {% for platform in platforms %}
                <tr>
                <td>{{ platform.name }}</td>
                <td>{{ branch.diff.files_metadata | filter(attr='file', list=platform.subprojects) | map(attr='additions') | sum }}</td>
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Feb 08 15:20:44 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals("gz", Files.getFileExtension("blah.tar.gz"));
        assertEquals("", Files.getFileExtension("/"));
        assertEquals("", Files.getFileExtension("."));
        assertEquals("", Files.getFileExtension(".."));
        assertEquals("", Files.getFileExtension("..."));
        assertEquals("", Files.getFileExtension("blah"));
        assertEquals("", Files.getFileExtension("blah."));
        assertEquals("", Files.getFileExtension(".blah."));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
                            if (Files.isRegularFile(mf)) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

            }
        }
    
        public static class ApiLogFilesResponse extends ApiResponse {
            protected List<Map<String, Object>> files;
            protected long total = 0;
    
            public ApiLogFilesResponse files(final List<Map<String, Object>> files) {
                this.files = files;
                return this;
            }
    
            public ApiLogFilesResponse total(final long total) {
                this.total = total;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  7. cni/test/install_cni.go

    			}
    		}
    	}
    
    	return fmt.Errorf("no files, or unrecognized op")
    }
    
    // checkTempFilesCleaned verifies that all temporary files have been cleaned up
    func checkTempFilesCleaned(tempCNIConfDir string, t *testing.T) {
    	t.Helper()
    	files, err := os.ReadDir(tempCNIConfDir)
    	if err != nil {
    		t.Fatalf("Failed to list files, err: %v", err)
    	}
    	for _, f := range files {
    		if strings.Contains(f.Name(), ".tmp") {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. scripts/mkdocs_hooks.py

                    resolve_file(item=values[0], files=files, config=config)
                elif isinstance(values[0], list):
                    resolve_files(items=values[0], files=files, config=config)
                else:
                    raise ValueError(f"Unexpected value: {values}")
    
    
    def on_files(files: Files, *, config: MkDocsConfig) -> Files:
        resolve_files(items=config.nav or [], files=files, config=config)
        if "logo" in config.theme:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  9. .github/workflows/pylint-presubmit.yml

          id: get_file_changes
          uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
          with:
            output: ' '
        - name: Report list of changed files
          run: |
            echo Changed files: ${{ steps.get_file_changes.outputs.files }}
        - name: Set up Python 3.9
          uses: actions/setup-python@2c3dd9e7e29afd70cc0950079bde6c979d1f69f9 # v4.3.1
          with:
            python-version: "3.9"
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Sep 12 16:40:29 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  10. .cm/misc_labels.cm

    is:
      formatting: {{ source.diff.files | isFormattingChange }}
      docs: {{ (files | allDocs) or (files | match(regex=r/\.adoc$/) | every) }} # This won't catch a mix of .adoc and non .adoc changes, see: https://github.com/linear-b/gitstream/issues/93
      tests: {{ files | allTests }}
    
      # Exclude anything under samples/snippets sourceSets, or any sort of test resource file
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top