Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 216 for Didn (0.22 sec)

  1. tests/test_tutorial/test_response_change_status_code/test_tutorial001.py

        assert response.json() == "Listen to the Bar Fighters"
        response = client.put("/get-or-create-task/bar")
        assert response.status_code == 201, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 521 bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, () -> task.interruptTask());
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(TimeUnit.SECONDS.toMillis(10));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

        try {
          getMultiset().add(e0(), 2);
          fail("unsupported multiset.add(E, int) didn't throw exception");
        } catch (UnsupportedOperationException required) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddOccurrencesNegative() {
        try {
          getMultiset().add(e0(), -1);
          fail("multiset.add(E, -1) didn't throw an exception");
        } catch (IllegalArgumentException required) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RecordedResponse.kt

      }
    
      /** Asserts that the current response didn't use the network.  */
      fun assertNoNetworkResponse() =
        apply {
          assertThat(response!!.networkResponse).isNull()
        }
    
      /** Asserts that the current response didn't use the cache.  */
      fun assertNoCacheResponse() =
        apply {
          assertThat(response!!.cacheResponse).isNull()
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertEquals(1, map.segments[3].table.length());
      }
    
      public void testInitialCapacity_large() {
        CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE);
        // that the builder didn't blow up is enough;
        // don't actually create this monster!
      }
    
      public void testConcurrencyLevel_zero() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  6. docs_src/dependencies/tutorial008c_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 710 bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/privileged.yml

    body:
      - type: markdown
        attributes:
          value: |
            Thanks for your interest in FastAPI! 🚀
    
            If you are not @tiangolo or he didn't ask you directly to create an issue here, please start the conversation in a [Question in GitHub Discussions](https://github.com/tiangolo/fastapi/discussions/categories/questions) instead.
      - type: checkboxes
        id: privileged
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 31 14:02:52 GMT 2023
    - 889 bytes
    - Viewed (0)
  8. docs_src/response_change_status_code/tutorial001.py

    tasks = {"foo": "Listen to the Bar Fighters"}
    
    
    @app.put("/get-or-create-task/{task_id}", status_code=200)
    def get_or_create_task(task_id: str, response: Response):
        if task_id not in tasks:
            tasks[task_id] = "This didn't exist before"
            response.status_code = status.HTTP_201_CREATED
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 391 bytes
    - Viewed (0)
  9. .github/DISCUSSION_TEMPLATE/questions.yml

              required: true
            - label: I searched the FastAPI documentation, with the integrated search.
              required: true
            - label: I already searched in Google "How to X in FastAPI" and didn't find any information.
              required: true
            - label: I already read and followed all the tutorial in the docs and didn't find an answer.
              required: true
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Aug 03 15:59:41 GMT 2023
    - 5.8K bytes
    - Viewed (1)
  10. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, () -> task.interruptTask());
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(TimeUnit.SECONDS.toMillis(10));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
Back to top