Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,224 for get3 (0.04 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial006.py

                ]
            }
        )
    
    
    def test_get_invalid_one_header():
        response = client.get("/items/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_get_invalid_second_header():
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt

            val buildTime = when {
                buildTimestampFromProperty != null -> {
                    timestampFormat.parse(buildTimestampFromProperty)
                }
                runningInstallTask.get() || runningDocsTestTask.get() || runningOnCi.get() -> {
                    Date()
                }
                else -> {
                    Date().withoutTime()
                }
            }
            return timestampFormat.format(buildTime)
        }
    
    Registered: Wed Oct 30 11:36:09 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental_test.cc

          TF_NewStatus(), TF_DeleteStatus);
      int assign = TF_OpIsStateful("AssignAddVariableOp", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(assign, 1);
      int id = TF_OpIsStateful("Identity", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(id, 0);
    }
    
    class ShapeInferenceTest : public ::testing::Test {
     protected:
    Registered: Tue Oct 29 12:39:09 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorTest.java

                    assertEquals("0", list.get(0).get(ID_FIELD));
                    assertEquals("9", list.get(1).get(ID_FIELD));
                    assertEquals("1", list.get(2).get(ID_FIELD));
                    assertEquals("8", list.get(3).get(ID_FIELD));
                    assertEquals("2", list.get(4).get(ID_FIELD));
                    assertEquals("7", list.get(5).get(ID_FIELD));
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/query/parser/QueryParserTest.java

            assertEquals(TermQuery.class, clauses.get(0).getQuery().getClass());
            assertEquals("_default:fess", clauses.get(0).getQuery().toString());
            assertEquals(Occur.MUST, clauses.get(0).getOccur());
            assertEquals(TermQuery.class, clauses.get(1).getQuery().getClass());
            assertEquals("_default:codelibs", clauses.get(1).getQuery().toString());
            assertEquals(Occur.MUST, clauses.get(1).getOccur());
    
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/bsbhv/BsWebAuthenticationBhv.java

                result.setAuthRealm(DfTypeUtil.toString(source.get("authRealm")));
                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setHostname(DfTypeUtil.toString(source.get("hostname")));
                result.setParameters(DfTypeUtil.toString(source.get("parameters")));
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. tests/test_additional_response_extra.py

    router = APIRouter()
    
    sub_router = APIRouter()
    
    app = FastAPI()
    
    
    @sub_router.get("/")
    def read_item():
        return {"id": "foo"}
    
    
    router.include_router(sub_router, prefix="/items")
    
    app.include_router(router)
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo"}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_extra_models/test_tutorial005.py

    from docs_src.extra_models.tutorial005 import app
    
    client = TestClient(app)
    
    
    def test_get_items():
        response = client.get("/keyword-weights/")
        assert response.status_code == 200, response.text
        assert response.json() == {"foo": 2.3, "bar": 3.4}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. tests/test_security_openid_connect_optional.py

        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: Optional[User] = Depends(get_current_user)):
        if current_user is None:
            return {"msg": "Create an account first"}
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.4K bytes
    - Viewed (1)
  10. src/test/java/org/codelibs/fess/crawler/FessCrawlerThreadTest.java

            assertEquals("playwright", list.get(0).getFirst());
            assertEquals("http://.*", list.get(0).getSecond().pattern());
    
            list = crawlerThread.getClientRuleList("playwright:http://.*,playwright:https://.*");
            assertEquals(2, list.size());
            assertEquals("playwright", list.get(0).getFirst());
            assertEquals("http://.*", list.get(0).getSecond().pattern());
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top