Search Options

Results per page
Sort
Preferred Languages
Advance

Results 531 - 540 of 3,801 for getD (0.02 sec)

  1. tests/test_tutorial/test_custom_response/test_tutorial005.py

    from docs_src.custom_response.tutorial005 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/")
        assert response.status_code == 200, response.text
        assert response.text == "Hello World"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 980 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_behind_a_proxy/test_tutorial002.py

    from docs_src.behind_a_proxy.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World", "root_path": "/api/v1"}
    
    
    def test_openapi():
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy

        @TaskAction
        def transform() {
            XIncludeAwareXmlProvider provider = new XIncludeAwareXmlProvider()
            provider.parse(sourceFile.get().asFile)
            transformImpl(provider.document)
            provider.write(destFile.get().asFile)
        }
    
        private def transformImpl(Document doc) {
            use(BuildableDOMCategory) {
                addVersionInfo(doc)
                transformApiLinks(doc)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

            webProtocols = split(fessConfig.getCrawlerWebProtocols(), ",")
                    .get(stream -> stream.filter(StringUtil::isNotBlank).map(s -> s.trim() + ":").toArray(n -> new String[n]));
            fileProtocols = split(fessConfig.getCrawlerFileProtocols(), ",")
                    .get(stream -> stream.filter(StringUtil::isNotBlank).map(s -> s.trim() + ":").toArray(n -> new String[n]));
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jun 19 01:34:15 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

                "$baseVersion-rc-${rcNumber.get()}"
            }
            milestoneNumber.isPresent -> {
                "$baseVersion-milestone-${milestoneNumber.get()}"
            }
            versionQualifier.isPresent -> {
                "$baseVersion-${versionQualifier.get()}-${buildTimestamp.get()}"
            }
            else -> {
                "$baseVersion-${buildTimestamp.get()}"
            }
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial001_an_py39.py

    
    @needs_py39
    def test_no_token(client: TestClient):
        response = client.get("/items")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    @needs_py39
    def test_token(client: TestClient):
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial008b.py

    from docs_src.dependencies.tutorial008b import app
    
    client = TestClient(app)
    
    
    def test_get_no_item():
        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_owner_error():
        response = client.get("/items/plumbus")
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Owner error: Rick"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 697 bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

          return null;
        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? immutableEntry(range, values.get(index)) : null;
        }
      }
    
      @Override
      public Range<K> span() {
        if (ranges.isEmpty()) {
          throw new NoSuchElementException();
        }
        Range<K> firstRange = ranges.get(0);
        Range<K> lastRange = ranges.get(ranges.size() - 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/MapCacheTest.java

          assertThat(mapCache.get(key)).isEqualTo(key + "_value");
        }
      }
    
      @Test
      public void testPutNewValue() {
        assertThat(mapCache.put("key", "value")).isNull();
        assertThat(mapCache.get("key")).isEqualTo("value"); // ensure key/value is cached
        assertThat(mapCache.put("key", "new value")).isEqualTo("value");
        assertThat(mapCache.get("key")).isEqualTo("new value");
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 16:23:26 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

            throw (Error) cause;
          }
        }
        throw e;
      }
    
      @Override
      public V get() throws ExecutionException, InterruptedException {
        try {
          super.get();
        } catch (ExecutionException e) {
          rethrow(e);
        }
        throw new AssertionError("Unreachable");
      }
    
      @Override
      public V get(long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 12 20:02:10 UTC 2018
    - 3.2K bytes
    - Viewed (0)
Back to top