Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for test_login (0.15 sec)

  1. tests/test_tutorial/test_security/test_tutorial005_an_py310.py

        return access_token
    
    
    @needs_py310
    def test_login(client: TestClient):
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 200, response.text
        content = response.json()
        assert "access_token" in content
        assert content["token_type"] == "bearer"
    
    
    @needs_py310
    def test_login_incorrect_password(client: TestClient):
        response = client.post(
    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)
  2. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

                }
    
                @Override
                protected String getClientIp() {
                    return StringUtil.EMPTY;
                }
            };
        }
    
        public void test_login() {
            activityHelper.useEcsFormat = false;
            activityHelper.login(OptionalThing.empty());
            assertEquals("action:LOGIN\tuser:-\tpermissions:-", localLogMsg.get());
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. 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;
                }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top