- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 4,243 for getC (0.03 sec)
-
tests/test_security_oauth2_password_bearer_optional.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): if token is None: return {"msg": "Create an account first"} return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/test_query.py
def test_query_optional(): response = client.get("/query/optional") assert response.status_code == 200 assert response.json() == "foo bar" def test_query_optional_query_baz(): response = client.get("/query/optional?query=baz") assert response.status_code == 200 assert response.json() == "foo bar baz" def test_query_optional_not_declared_baz(): response = client.get("/query/optional?not_declared=baz")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessStandardTransformer.java
dataSerializer = ComponentUtil.getComponent("dataSerializer"); } /** * Gets the Fess configuration instance. * * @return the Fess configuration */ @Override public FessConfig getFessConfig() { return fessConfig; } /** * Gets the logger instance for this transformer. * * @return the logger instance */ @Override
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java
assertEquals("Hello", tokens.get(0).getTerm()); assertEquals("world", tokens.get(1).getTerm()); assertEquals("How", tokens.get(2).getTerm()); assertEquals("are", tokens.get(3).getTerm()); assertEquals("you", tokens.get(4).getTerm()); assertEquals("I", tokens.get(5).getTerm()); assertEquals("m", tokens.get(6).getTerm());
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 15.7K bytes - Viewed (0) -
tests/test_repeated_dependency_schema.py
}, }, "summary": "Get Deps", } } }, } def test_schema(): response = client.get("/openapi.json") assert response.status_code == status.HTTP_200_OK actual_schema = response.json() assert actual_schema == schema assert ( len(actual_schema["paths"]["/"]["get"]["parameters"]) == 1 ) # primary goal of this testRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Mar 06 12:18:57 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java
public void testNewReference() throws Exception { assertEquals(null, Atomics.newReference().get()); } public void testNewReference_withInitialValue() throws Exception { assertEquals(null, Atomics.newReference(null).get()); assertEquals(OBJECT, Atomics.newReference(OBJECT).get()); } public void testNewReferenceArray_withLength() throws Exception { int length = 42;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/XmlUtilTest.java
assertNotNull(dataMap); assertTrue(dataMap.get("tags") instanceof List); @SuppressWarnings("unchecked") List<String> tags = (List<String>) dataMap.get("tags"); assertEquals(3, tags.size()); assertEquals("tag1", tags.get(0)); assertEquals("tag2", tags.get(1)); assertEquals("tag3", tags.get(2)); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SSPContext.java
* @return whether the specified mechanism is preferred */ boolean isPreferredMech(ASN1ObjectIdentifier selectedMech); /** * Gets the negotiated context flags. * @return context flags */ int getFlags(); /** * Gets the array of supported security mechanism OIDs. * @return array of supported mechanism OIDs */ ASN1ObjectIdentifier[] getSupportedMechs();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
tests/test_openapi_examples.py
response = client.get("/path_examples/foo") assert response.status_code == 200, response.text response = client.get("/query_examples/") assert response.status_code == 200, response.text response = client.get("/header_examples/") assert response.status_code == 200, response.text response = client.get("/cookie_examples/")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 15.1K bytes - Viewed (0) -
tests/test_dependency_paramless.py
@app.get("/get-credentials") def get_credentials( credentials: Annotated[dict, Security(process_auth, scopes=["a", "b"])], ): return credentials @app.get( "/parameterless-with-scopes", dependencies=[Security(process_auth, scopes=["a", "b"])], ) def get_parameterless_with_scopes(): return {"status": "ok"} @app.get( "/parameterless-without-scopes",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.3K bytes - Viewed (0)