Search Options

Results per page
Sort
Preferred Languages
Advance

Results 561 - 570 of 807 for v1 (0.04 sec)

  1. okhttp/src/test/java/okhttp3/CacheTest.kt

      @Test
      fun etag() {
        val conditionalRequest =
          assertConditionallyCached(
            MockResponse.Builder()
              .addHeader("ETag: v1")
              .build(),
          )
        assertThat(conditionalRequest.headers["If-None-Match"]).isEqualTo("v1")
      }
    
      /** If both If-Modified-Since and If-None-Match conditions apply, send only If-None-Match.  */
      @Test
      fun etagAndExpirationDateInThePast() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  2. .github/workflows/test-redistribute.yml

        if: always()
        needs:
          - test-redistribute
        runs-on: ubuntu-latest
        steps:
          - name: Decide whether the needed jobs succeeded or failed
            uses: re-actors/alls-green@release/v1
            with:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 08 23:34:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/testdata/routes/k8s-gateway-http-route-path-prefix/configdump.json

               "max_grpc_timeout": "0s"
              },
              "metadata": {
               "filter_metadata": {
                "istio": {
                 "config": "/apis/networking.istio.io/v1/namespaces/default/virtual-service/http-0-istio-autogenerated-k8s-gateway"
                }
               }
              },
              "decorator": {
               "operation": "httpbin.default.svc.cluster.local:8000/*"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 08 20:44:50 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/settings.md

    //// tab | Pydantic v2
    
    ```Python hl_lines="2  5-8  11"
    {!> ../../docs_src/settings/tutorial001.py!}
    ```
    
    ////
    
    //// tab | Pydantic v1
    
    /// info
    
    In Pydantic v1 you would import `BaseSettings` directly from `pydantic` instead of from `pydantic_settings`.
    
    ///
    
    ```Python hl_lines="2  5-8  11"
    {!> ../../docs_src/settings/tutorial001_pv1.py!}
    ```
    
    ////
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. tests/test_inherited_custom_class.py

            "fast_uuid": "a10ff360-3b1e-4984-a26f-d3ab460bdb51"
        }
    
        assert response_pydantic.json() == {
            "a_uuid": "b8799909-f914-42de-91bc-95c819218d01"
        }
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    def test_pydanticv1():
        app = FastAPI()
    
        @app.get("/fast_uuid")
        def return_fast_uuid():
            asyncpg_uuid = MyUuid("a10ff360-3b1e-4984-a26f-d3ab460bdb51")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinModifiersChangeTest.kt

    import org.junit.Test
    
    
    class KotlinModifiersChangeTest : AbstractBinaryCompatibilityTest() {
    
        @Test
        fun `operator or infix modifier change is breaking`() {
    
            checkNotBinaryCompatibleKotlin(
                v1 = """
                    fun Int.invoke(some: Int) {}
                    operator fun Boolean.invoke(some: Int) {}
    
                    fun String.invoke(some: Int) {}
                    operator fun Long.invoke(some: Int) {}
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

      public void testPutTwoElements() {
        int size = getNumElements();
    
        List<V> values = copyToList(multimap().get(k0()));
    
        assertTrue(multimap().put(k0(), v1()));
        assertTrue(multimap().put(k0(), v2()));
    
        values.add(v1());
        values.add(v2());
    
        assertGet(k0(), values);
        assertEquals(size + 2, multimap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

      public void testPutTwoElements() {
        int size = getNumElements();
    
        List<V> values = copyToList(multimap().get(k0()));
    
        assertTrue(multimap().put(k0(), v1()));
        assertTrue(multimap().put(k0(), v2()));
    
        values.add(v1());
        values.add(v2());
    
        assertGet(k0(), values);
        assertEquals(size + 2, multimap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. tests/test_additional_properties_bool.py

                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {"$ref": "#/components/schemas/Foo"}
                                    )
                                }
                            }
                        },
                        "responses": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. tests/test_datastructures.py

    from typing import List
    
    import pytest
    from fastapi import FastAPI, UploadFile
    from fastapi.datastructures import Default
    from fastapi.testclient import TestClient
    
    
    # TODO: remove when deprecating Pydantic v1
    def test_upload_file_invalid():
        with pytest.raises(ValueError):
            UploadFile.validate("not a Starlette UploadFile")
    
    
    def test_upload_file_invalid_pydantic_v2():
        with pytest.raises(ValueError):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top