Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for call_counts (0.06 seconds)

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

  1. tests/test_security_scopes_sub_dependency.py

    
    def test_security_scopes_sub_dependency_caching(
        client: TestClient, call_counts: dict[str, int]
    ):
        response = client.get("/")
    
        assert response.status_code == 200
        assert call_counts["get_db_session"] == 1
        assert call_counts["get_current_user"] == 2
        assert call_counts["get_user_me"] == 2
        assert call_counts["get_user_items"] == 1
        assert response.json() == {
            "user_me": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_python_types/test_tutorial006.py

    from docs_src.python_types.tutorial006_py39 import process_items
    
    
    def test_process_items():
        with patch("builtins.print") as mock_print:
            process_items(["item_a", "item_b", "item_c"])
    
        assert mock_print.call_count == 3
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("item_a",),
            ("item_b",),
            ("item_c",),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 426 bytes
    - Click Count (0)
  3. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
            module.say_hi()
    
        assert mock_print.call_count == 2
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("Hey FastAPI!",),
            ("Hello World",),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 805 bytes
    - Click Count (0)
  4. tests/test_tutorial/test_python_types/test_tutorial008b.py

        return mod
    
    
    def test_process_items(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.process_item("a")
    
        assert mock_print.call_count == 1
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 637 bytes
    - Click Count (0)
  5. tests/test_tutorial/test_python_types/test_tutorial011.py

        ],
    )
    def test_run_module(module_name: str):
        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
        assert mock_print.call_count == 2
        call_args = [str(arg.args[0]) for arg in mock_print.call_args_list]
        assert call_args == [
            "id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]",
            "123",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 691 bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                  public Object load(String key) throws InterruptedException {
                    callCount.incrementAndGet();
                    startSignal.await();
                    return result;
                  }
                });
    
        List<Object> resultArray = doConcurrentGet(cache, "bar", count, startSignal);
    
        assertThat(callCount.get()).isEqualTo(1);
        for (int i = 0; i < count; i++) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 91.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                  public Object load(String key) throws InterruptedException {
                    callCount.incrementAndGet();
                    startSignal.await();
                    return result;
                  }
                });
    
        List<Object> resultArray = doConcurrentGet(cache, "bar", count, startSignal);
    
        assertThat(callCount.get()).isEqualTo(1);
        for (int i = 0; i < count; i++) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 91.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/SmbWatchHandleTest.java

            SmbWatchHandle realHandle = new SmbWatchHandle() {
                private int callCount = 0;
    
                @Override
                public List<FileNotifyInformation> watch() throws CIFSException {
                    callCount++;
                    if (callCount == 1) {
                        return Arrays.asList(fileNotifyInfo1);
                    }
                    return Collections.emptyList();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

              clientTestRule.wrap(
                object : EventListener() {
                  var callCount = 0
    
                  override fun connectionAcquired(
                    call: Call,
                    connection: Connection,
                  ) {
                    try {
                      if (callCount++ == 1) {
                        server.close()
                      }
                    } catch (e: IOException) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 67.4K bytes
    - Click Count (0)
Back to Top