Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 444 for qsub (0.17 sec)

  1. tests/test_dependency_cache.py

    async def get_counter(count: int = Depends(dep_counter)):
        return {"counter": count}
    
    
    @app.get("/sub-counter/")
    async def get_sub_counter(
        subcount: int = Depends(super_dep), count: int = Depends(dep_counter)
    ):
        return {"counter": count, "subcounter": subcount}
    
    
    @app.get("/sub-counter-no-cache/")
    async def get_sub_counter_no_cache(
        subcount: int = Depends(super_dep),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Aug 23 13:30:24 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  2. tests/test_validate_response_recursive/test_validate_response_recursive_pv1.py

        assert response.json() == {
            "sub_items": [{"name": "subitem", "sub_items": []}],
            "name": "item",
        }
    
        response = client.get("/items/recursive-submodel")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "item",
            "sub_items1": [
                {
                    "name": "subitem",
                    "sub_items2": [
                        {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 900 bytes
    - Viewed (0)
  3. tests/test_validate_response_recursive/test_validate_response_recursive_pv2.py

        assert response.json() == {
            "sub_items": [{"name": "subitem", "sub_items": []}],
            "name": "item",
        }
    
        response = client.get("/items/recursive-submodel")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "item",
            "sub_items1": [
                {
                    "name": "subitem",
                    "sub_items2": [
                        {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 900 bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

        dependency_cache = dependency_cache or {}
        sub_dependant: Dependant
        for sub_dependant in dependant.dependencies:
            sub_dependant.call = cast(Callable[..., Any], sub_dependant.call)
            sub_dependant.cache_key = cast(
                Tuple[Callable[..., Any], Tuple[str]], sub_dependant.cache_key
            )
            call = sub_dependant.call
            use_sub_dependant = sub_dependant
            if (
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. tests/test_openapi_separate_input_output_schemas.py

            == response2.json()
            == {"name": "Plumbus", "description": None, "sub": None}
        )
    
    
    def test_create_item_with_sub():
        client = get_app_client()
        client_no = get_app_client(separate_input_output_schemas=False)
        data = {
            "name": "Plumbus",
            "sub": {"subname": "SubPlumbus", "sub_description": "Sub WTF"},
        }
        response = client.post("/items/", json=data)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 18.4K bytes
    - Viewed (2)
  6. guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        RangeMap<Integer, Integer> sub = rangeMap.subRangeMap(Range.closed(5, 11));
        assertEquals(
            ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.closed(9, 10), 2), sub.asMapOfRanges());
        sub.put(Range.closed(7, 9), 4);
        assertEquals(
            ImmutableMap.of(
                Range.closedOpen(5, 7), 1, Range.closed(7, 9), 4, Range.openClosed(9, 10), 2),
            sub.asMapOfRanges());
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  7. tests/test_dependency_duplicates.py

    @app.post("/no-duplicates")
    async def no_duplicates(item: Item, item2: Item = Depends(dependency)):
        return [item, item2]
    
    
    @app.post("/with-duplicates-sub")
    async def no_duplicates_sub(
        item: Item, sub_items: List[Item] = Depends(sub_duplicate_dependency)
    ):
        return [item, sub_items]
    
    
    def test_no_duplicates_invalid():
        response = client.post("/no-duplicates", json={"item": {"data": "myitem"}})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java

                task.from(extension.getUserManual().getSnippets(), sub -> {
                    sub.into("snippets");
                    sub.exclude("**/.gradle/**");
                    sub.exclude("**/build/**");
                    sub.setIncludeEmptyDirs(false);
                });
                task.from(extension.getUserManual().getSamples(), sub -> {
                    sub.into("samples");
                    sub.exclude("**/*.adoc");
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Mar 01 05:46:51 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  9. tests/test_router_events.py

            state.router_shutdown = True
    
        sub_router = APIRouter()
    
        @sub_router.on_event("startup")
        def sub_router_startup() -> None:
            state.sub_router_startup = True
    
        @sub_router.on_event("shutdown")
        def sub_router_shutdown() -> None:
            state.sub_router_shutdown = True
    
        router.include_router(sub_router)
        app.include_router(router)
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/rpc.java

                }
                if (sub_authority == null) {
                    if (_sub_authoritys < 0 || _sub_authoritys > 0xFFFF) throw new NdrException( NdrException.INVALID_CONFORMANCE );
                    sub_authority = new int[_sub_authoritys];
                }
                _src = _src.derive(_sub_authorityi);
                for (int _i = 0; _i < _sub_authoritys; _i++) {
                    sub_authority[_i] = (int)_src.dec_ndr_long();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 8K bytes
    - Viewed (0)
Back to top