Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 3,545 for getK (0.1 sec)

  1. tests/test_security_http_digest_optional.py

    client = TestClient(app)
    
    
    def test_security_http_digest():
        response = client.get("/users/me", headers={"Authorization": "Digest foobar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"scheme": "Digest", "credentials": "foobar"}
    
    
    def test_security_http_digest_no_credentials():
        response = client.get("/users/me")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. tests/test_security_http_bearer_description.py

    security = HTTPBearer(description="HTTP Bearer token scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_bearer():
        response = client.get("/users/me", headers={"Authorization": "Bearer foobar"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

            return stream(langs).get(stream -> stream.map(s -> {
                if (StringUtil.isBlank(s)) {
                    return null;
                }
                final String lang1 = mapping.get(s);
                if (lang1 != null) {
                    return lang1;
                }
                return mapping.get(s.split("[\\-_]")[0]);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                public void run() {
                  assertSame(Boolean.TRUE, memoizedSupplier.get());
                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SuppliersTest.java

                public void run() {
                  assertSame(Boolean.TRUE, memoizedSupplier.get());
                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/entity/SearchRequestParams.java

            return !isEmptyArray(conditions.get(AS_Q))//
                    || !isEmptyArray(conditions.get(AS_EPQ))//
                    || !isEmptyArray(conditions.get(AS_OQ))//
                    || !isEmptyArray(conditions.get(AS_NQ))//
                    || !isEmptyArray(conditions.get(AS_TIMESTAMP))//
                    || !isEmptyArray(conditions.get(AS_SITESEARCH))//
                    || !isEmptyArray(conditions.get(AS_FILETYPE));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_params/test_tutorial005.py

    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        data = response.json()
        assert data == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/models/{model_name}": {
                    "get": {
                        "summary": "Get Model",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial006.py

    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    def test_security_http_basic_no_credentials():
        response = client.get("/users/me")
        assert response.json() == {"detail": "Not authenticated"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/bsbhv/BsScheduledJobBhv.java

                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setScriptData(DfTypeUtil.toString(source.get("scriptData")));
                result.setScriptType(DfTypeUtil.toString(source.get("scriptType")));
                result.setSortOrder(DfTypeUtil.toInteger(source.get("sortOrder")));
                result.setTarget(DfTypeUtil.toString(source.get("target")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_bigger_applications/test_main.py

        return client
    
    
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
        assert response.status_code == 200
        assert response.json() == [{"username": "Rick"}, {"username": "Morty"}]
    
    
    def test_users_with_no_token(client: TestClient):
        response = client.get("/users")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top