Search Options

Results per page
Sort
Preferred Languages
Advance

Results 651 - 660 of 3,511 for getS (0.02 sec)

  1. tests/test_security_http_basic_realm_description.py

    security = HTTPBasic(realm="simple", description="HTTPBasic scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Security(security)):
        return {"username": credentials.username, "password": credentials.password}
    
    
    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. tests/test_default_response_class.py

    router_b_a_c_override = APIRouter()  # Overrides default class again
    
    
    @app.get("/")
    def get_root():
        return {"msg": "Hello World"}
    
    
    @app.get("/override", response_class=PlainTextResponse)
    def get_path_override():
        return "Hello World"
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "Hello A"}
    
    
    @router_a.get("/override", response_class=PlainTextResponse)
    def get_a_path_override():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

                            + "bytes=%d, errors=%d, errorRate=%.3f, activeConnections=%d, activeMemRegions=%d]",
                    rdmaReads.get(), rdmaWrites.get(), rdmaSends.get(), rdmaReceives.get(), bytesTransferred.get(), operationErrors.get(),
                    getErrorRate(), connectionsActive.get(), memoryRegionsActive.get());
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

            assertTrue(result.getWarnings().get(0).contains("duplicate declaration of plugin test:duplicate"));
            assertTrue(result.getWarnings().get(1).contains("duplicate declaration of plugin test:managed-duplicate"));
            assertTrue(result.getWarnings().get(2).contains("duplicate declaration of plugin profile:duplicate"));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 33.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_directly/test_tutorial002.py

        </Body>
        </shampoo>
        """
    
        response = client.get("/legacy/")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "application/xml"
        assert response.text == expected_content
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. 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)
  8. tests/test_response_by_alias.py

    
    @app.get("/by-alias/dict", response_model=Model)
    def by_alias_dict():
        return {"alias": "Foo"}
    
    
    @app.get("/by-alias/model", response_model=Model)
    def by_alias_model():
        return Model(alias="Foo")
    
    
    @app.get("/by-alias/list", response_model=list[Model])
    def by_alias_list():
        return [{"alias": "Foo"}, {"alias": "Bar"}]
    
    
    @app.get("/no-alias/dict", response_model=ModelNoAlias)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java

                // Mock strategies with different results
                when(mockStrategies.get(0).isApplicable(context)).thenReturn(true);
                when(mockStrategies.get(0).apply(Mockito.eq(context), Mockito.any()))
                        .thenReturn(
                                new UpgradeResult(Set.of(Paths.get("pom.xml")), Set.of(Paths.get("pom.xml")), Set.of()));
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbAuthenticationHolderTest.java

            assertNull(smbAuthenticationHolder.get(null));
            assertNull(smbAuthenticationHolder.get(""));
            assertNull(smbAuthenticationHolder.get(" "));
            assertNull(smbAuthenticationHolder.get("smb://"));
            assertNull(smbAuthenticationHolder.get("smb://hoge:1000/"));
            assertNull(smbAuthenticationHolder.get("smb://foo/"));
            assertNull(smbAuthenticationHolder.get("smb://foo:10000/"));
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top