Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for nonexistent (0.2 sec)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

        Path path = FS.getPath("nonexistent.file");
        assertNull(path.getParent());
        assertNotNull(path.toAbsolutePath().getParent());
        MoreFiles.createParentDirectories(path); // test that there's no exception
      }
    
      public void testCreateParentDirectories_noParentsNeeded() throws IOException {
        Path path = tempDir.resolve("nonexistent.file");
        assertTrue(Files.exists(path.getParent()));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        File file = file("nonexistent.file");
        assertNull(file.getParentFile());
        assertNotNull(file.getCanonicalFile().getParentFile());
        Files.createParentDirs(file);
      }
    
      public void testCreateParentDirs_noParentsNeeded() throws IOException {
        File file = file(getTempDir(), "nonexistent.file");
        assertTrue(file.getParentFile().exists());
    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)
  3. tests/test_tutorial/test_security/test_tutorial005_an.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    def test_incorrect_token_type():
        response = client.get(
            "/users/me", headers={"Authorization": "Notexistent testtoken"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial005_an_py39.py

            "email": "******@****.***",
            "disabled": False,
        }
    
    
    @needs_py39
    def test_incorrect_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py39
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial005_py310.py

            "email": "******@****.***",
            "disabled": False,
        }
    
    
    @needs_py310
    def test_incorrect_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

        File file = file("nonexistent.file");
        assertNull(file.getParentFile());
        assertNotNull(file.getCanonicalFile().getParentFile());
        Files.createParentDirs(file);
      }
    
      public void testCreateParentDirs_noParentsNeeded() throws IOException {
        File file = file(getTempDir(), "nonexistent.file");
        assertTrue(file.getParentFile().exists());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial005_py39.py

            "email": "******@****.***",
            "disabled": False,
        }
    
    
    @needs_py39
    def test_incorrect_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py39
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial005_an_py310.py

            "email": "******@****.***",
            "disabled": False,
        }
    
    
    @needs_py310
    def test_incorrect_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_security/test_tutorial005.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    def test_incorrect_token_type():
        response = client.get(
            "/users/me", headers={"Authorization": "Notexistent testtoken"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py

        data = response.json()
        assert "email" in data
        assert "id" in data
    
    
    @needs_py39
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_nonexistent_user(client):
        response = client.get("/users/999")
        assert response.status_code == 404, response.text
    
    
    @needs_py39
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_get_users(client):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.5K bytes
    - Viewed (0)
Back to top