Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 1,178 for strs (0.01 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

        }
    
        @Test
        @DisplayName("toString includes command name and filename")
        void testToStringIncludesInformation() {
            String str = cmd.toString();
            assertTrue(str.startsWith("SmbComQueryInformation"), "String representation must start with class name");
            assertTrue(str.contains("filename=testfile.txt"), "toString must contain the supplied filename");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. docs/site-replication/run-multi-site-oidc.sh

    sleep 5
    
    # Generate STS credential with STS call to minio1
    STS_CRED=$(MINIO_ENDPOINT=http://localhost:9001 go run ./docs/site-replication/gen-oidc-sts-cred.go)
    
    MC_HOST_foo=http://${STS_CRED}@localhost:9001 ./mc ls foo
    if [ $? -ne 0 ]; then
    	echo "Expected sts credential to work, exiting.."
    	exit_1
    fi
    
    sleep 2
    
    # Check that the STS credential works on minio2 and minio3.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Sep 24 08:03:58 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfoWithEof.getFileInformationLevel());
    
            // Test toString
            String str = fileInfoWithEof.toString();
            assertNotNull(str);
            assertTrue(str.contains("EndOfFileInformation"));
            assertTrue(str.contains("1024"));
        }
    
        /**
         * Test FileEndOfFileInformation encode/decode round trip
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. tests/test_ws_dependencies.py

    from typing import Annotated
    
    from fastapi import APIRouter, Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    
    
    def dependency_list() -> list[str]:
        return []
    
    
    DepList = Annotated[list[str], Depends(dependency_list)]
    
    
    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    router = APIRouter(dependencies=[create_dependency("router")])
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. tests/test_sub_callbacks.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: Optional[str] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  6. docs_src/extra_models/tutorial004_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str
    
    
    items = [
        {"name": "Foo", "description": "There comes my hero"},
        {"name": "Red", "description": "It's my aeroplane"},
    ]
    
    
    @app.get("/items/", response_model=list[Item])
    async def read_items():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 356 bytes
    - Viewed (0)
  7. docs_src/settings/app03_py39/config.py

    from pydantic_settings import BaseSettings, SettingsConfigDict
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 235 bytes
    - Viewed (0)
  8. docs_src/settings/app03_py39/config_pv1.py

    from pydantic.v1 import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
        class Config:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 198 bytes
    - Viewed (0)
  9. docs_src/pydantic_v1_in_v2/tutorial001_an_py39.py

    from typing import Union
    
    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 156 bytes
    - Viewed (0)
  10. tests/test_security_scopes_sub_dependency.py

        }
    
    
    @pytest.fixture(name="app")
    def app_fixture(call_counts: dict[str, int]):
        def get_db_session():
            call_counts["get_db_session"] += 1
            return f"db_session_{call_counts['get_db_session']}"
    
        def get_current_user(
            security_scopes: SecurityScopes,
            db_session: Annotated[str, Depends(get_db_session)],
        ):
            call_counts["get_current_user"] += 1
            return {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top