Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 420 for snapshots (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_request_params/test_cookie/test_optional_str.py

    from typing import Annotated
    
    import pytest
    from fastapi import Cookie, FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.get("/optional-str")
    async def read_optional_str(p: Annotated[str | None, Cookie()] = None):
        return {"p": p}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        assertThat(invalidated).isEqualTo(toInvalidate);
      }
    
      public void testEmptySimpleStats() {
        StatsCounter counter = new SimpleStatsCounter();
        CacheStats stats = counter.snapshot();
        assertThat(stats.requestCount()).isEqualTo(0);
        assertThat(stats.hitCount()).isEqualTo(0);
        assertThat(stats.hitRate()).isEqualTo(1.0);
        assertThat(stats.missCount()).isEqualTo(0);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  3. tests/test_additional_response_extra.py

    from fastapi import APIRouter, FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    router = APIRouter()
    
    sub_router = APIRouter()
    
    app = FastAPI()
    
    
    @sub_router.get("/")
    def read_item():
        return {"id": "foo"}
    
    
    router.include_router(sub_router, prefix="/items")
    
    app.include_router(router)
    
    client = TestClient(app)
    
    
    def test_path_operation():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  4. tests/test_deprecated_openapi_prefix.py

    from fastapi import FastAPI, Request
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI(openapi_prefix="/api/v1")
    
    
    @app.get("/app")
    def read_main(request: Request):
        return {"message": "Hello World", "root_path": request.scope.get("root_path")}
    
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

        @Test
        public void test_getSnapshotActualVersion_valid() {
            String snapshotXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<metadata>\n" + "  <snapshot>\n"
                    + "    <timestamp>20180814.210714</timestamp>\n" + "    <buildNumber>10</buildNumber>\n" + "  </snapshot>\n"
                    + "</metadata>";
    
            PluginHelper testHelper = new PluginHelper() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 22.6K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/test/resources/poms/depmgmt/root-dep-last.xml

        <groupId>test</groupId>
        <artifactId>test</artifactId>
        <version>0.1-SNAPSHOT</version>
    
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>test</groupId>
                    <artifactId>import</artifactId>
                    <version>0.1-SNAPSHOT</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 951 bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/QualifiedVersion.java

                return COMPARATOR.compare(this, other);
            }
    
            private static Qualifier of(String qualifier) {
                if ("SNAPSHOT".equals(qualifier)) {
                    return new Qualifier(QualifierLevel.SNAPSHOT, 0);
                }
    
                Pattern pattern = Pattern.compile("^(alpha|beta|rc)(\\d+)$");
                Matcher matcher = pattern.matcher(qualifier);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 5.9K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/test/resources/poms/depmgmt/root-distance-explicit.xml

        <groupId>test</groupId>
        <artifactId>test</artifactId>
        <version>0.1-SNAPSHOT</version>
    
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>test</groupId>
                    <artifactId>other</artifactId>
                    <version>0.1-SNAPSHOT</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  9. tests/test_schema_ref_pydantic_v2.py

    from typing import Any
    
    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, ConfigDict, Field
    
    
    @pytest.fixture(name="client")
    def get_client():
        app = FastAPI()
    
        class ModelWithRef(BaseModel):
            ref: str = Field(validation_alias="$ref", serialization_alias="$ref")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  10. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            assertTrue(range.containsVersion(new DefaultArtifactVersion("1.1-SNAPSHOT")));
            assertTrue(range.containsVersion(new DefaultArtifactVersion("1.2-SNAPSHOT")));
    
            range = VersionRange.createFromVersionSpec("[1.0-SNAPSHOT,1.2]");
    
            assertTrue(range.containsVersion(new DefaultArtifactVersion("1.0-SNAPSHOT")));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 44.1K bytes
    - Click Count (0)
Back to Top