- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for test_login (0.04 sec)
-
tests/test_tutorial/test_security/test_tutorial003.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.security.{request.param}") client = TestClient(mod.app) return client def test_login(client: TestClient): response = client.post("/token", data={"username": "johndoe", "password": "secret"}) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.7K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
if scope: data["scope"] = scope response = client.post("/token", data=data) content = response.json() access_token = content.get("access_token") return access_token def test_login(mod: ModuleType): client = TestClient(mod.app) response = client.post("/token", data={"username": "johndoe", "password": "secret"}) assert response.status_code == 200, response.text content = response.json()Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 15.8K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial004.py
data = {"username": username, "password": password} response = client.post("/token", data=data) content = response.json() access_token = content.get("access_token") return access_token def test_login(mod: ModuleType): client = TestClient(mod.app) response = client.post("/token", data={"username": "johndoe", "password": "secret"}) assert response.status_code == 200, response.text content = response.json()Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 13.3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java
Plugin testPlugin = null; for (Plugin plugin : plugins) { String pluginArtifactId = plugin.getArtifactId(); assertTrue(validPluginCounts.containsKey(pluginArtifactId), "Illegal plugin found: " + pluginArtifactId); if (pluginArtifactId.equals(testPluginArtifactId)) { testPlugin = plugin; }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 04 10:35:11 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
assertTrue(ex.getMessage().contains("Connection failed")); } @Test @DisplayName("Should perform logon to IPC$ share") void testLogon() throws Exception { // Given: Mock transport, session and tree SmbTransportPoolImpl poolSpy = spy(pool); when(ctx.getTransportPool()).thenReturn(poolSpy);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0)