Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 73 for test_c (0.13 seconds)

  1. docs/pt/docs/tutorial/testing.md

    ///
    
    /// tip | Dica
    
    Se você quiser chamar funções `async` em seus testes além de enviar solicitações à sua aplicação FastAPI (por exemplo, funções de banco de dados assíncronas), dê uma olhada em [Testes assíncronos](../advanced/async-tests.md) no tutorial avançado.
    
    ///
    
    ## Separando testes { #separating-tests }
    
    Em uma aplicação real, você provavelmente teria seus testes em um arquivo diferente.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  2. docs/pt/docs/how-to/custom-docs-ui-assets.md

    ///
    
    ### Criar uma *operação de rota* para testar { #create-a-path-operation-to-test-it }
    
    Agora, para poder testar se tudo funciona, crie uma *operação de rota*:
    
    {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[36:38] *}
    
    ### Teste { #test-it }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            final Map<String, Object> map = Map.of("name", "test-name");
            assertEquals("test-name", coordinatorHelper.getStringValue(map, "name"));
        }
    
        @Test
        public void test_getStringValue_numeric() {
            final Map<String, Object> map = Map.of("count", 42);
            assertEquals("42", coordinatorHelper.getStringValue(map, "count"));
        }
    
        @Test
        public void test_getStringValue_null() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  4. .github/workflows/tests.yml

            with:
              path: ~/go/pkg/mod
              key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }}
    
          - name: Tests
            run: GITHUB_ACTION=true GORM_DIALECT=tidb GORM_DSN="root:@tcp(localhost:9940)/test?charset=utf8&parseTime=True&loc=Local" ./tests/tests_all.sh
    
      gaussdb:
        strategy:
          matrix:
            dbversion: ['opengauss/opengauss:7.0.0-RC1.B023']
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Mar 23 10:05:06 GMT 2026
    - 9K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/testing.md

    **FastAPI** 為了方便開發者,也提供與 `starlette.testclient` 相同的 `fastapi.testclient`。但它其實直接來自 Starlette。
    
    ///
    
    /// tip
    
    如果你想在測試中呼叫其他 `async` 函式,而不只是對 FastAPI 應用發送請求(例如非同步的資料庫函式),請參考進階教學中的[非同步測試](../advanced/async-tests.md)。
    
    ///
    
    ## 分離測試 { #separating-tests }
    
    在真實專案中,你大概會把測試放在不同的檔案中。
    
    你的 **FastAPI** 應用也可能由多個檔案/模組組成,等等。
    
    ### **FastAPI** 應用檔案 { #fastapi-app-file }
    
    假設你的檔案結構如[更大型的應用](bigger-applications.md)所述:
    
    ```
    .
    ├── app
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/testing.md

    **FastAPI** 提供了和 `starlette.testclient` 一样的 `fastapi.testclient`,只是为了方便开发者。但它直接来自Starlette。
    
    ///
    
    /// tip | 提示
    
    除了发送请求之外,如果你还想测试时在FastAPI应用中调用 `async` 函数(例如异步数据库函数), 可以在高级教程中看下 [Async Tests](../advanced/async-tests.md) 。
    
    ///
    
    ## 分离测试 { #separating-tests }
    
    在实际应用中,你可能会把你的测试放在另一个文件里。
    
    您的**FastAPI**应用程序也可能由一些文件/模块组成等等。
    
    ### **FastAPI** app 文件 { #fastapi-app-file }
    
    假设你有一个像[更大的应用](bigger-applications.md)中所描述的文件结构:
    
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

        }
    
        // Test command string construction edge cases
        @Test
        public void test_command_string_edge_cases() throws Exception {
            // Test with commands containing special characters
            final List<String> specialCommands = Arrays.asList("echo \"test with quotes\"", "echo 'test with single quotes'",
                    "echo test with spaces", "echo test&with&ampersand", "echo test|with|pipe");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  8. docs/de/docs/advanced/async-tests.md

    # Asynchrone Tests { #async-tests }
    
    Sie haben bereits gesehen, wie Sie Ihre **FastAPI**-Anwendungen mit dem bereitgestellten `TestClient` testen. Bisher haben Sie nur gesehen, wie man synchrone Tests schreibt, ohne `async`-Funktionen zu verwenden.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 4.3K bytes
    - Click Count (1)
  9. docs/pt/docs/benchmarks.md

    Benchmarks independentes da TechEmpower mostram as aplicações **FastAPI** rodando com Uvicorn como [um dos frameworks Python mais rápidos disponíveis](https://www.techempower.com/benchmarks/#section=test&runid=7464e520-0dc2-473d-bd34-dbdfd7e85911&hw=ph&test=query&l=zijzen-7), somente atrás dos próprios Starlette e Uvicorn (utilizados internamente pelo FastAPI).
    
    Mas quando se checa _benchmarks_ e comparações você deveria ter o seguinte em mente.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  10. docs/ko/docs/advanced/async-tests.md

    # 비동기 테스트 { #async-tests }
    
    제공된 `TestClient`를 사용하여 **FastAPI** 애플리케이션을 테스트하는 방법을 이미 살펴보았습니다. 지금까지는 `async` 함수를 사용하지 않고, 동기 테스트를 작성하는 방법만 보았습니다.
    
    테스트에서 비동기 함수를 사용할 수 있으면 유용할 수 있습니다. 예를 들어 데이터베이스를 비동기로 쿼리하는 경우를 생각해 보세요. FastAPI 애플리케이션에 요청을 보낸 다음, async 데이터베이스 라이브러리를 사용하면서 백엔드가 데이터베이스에 올바른 데이터를 성공적으로 기록했는지 검증하고 싶을 수 있습니다.
    
    어떻게 동작하게 만들 수 있는지 살펴보겠습니다.
    
    ## pytest.mark.anyio { #pytest-mark-anyio }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.5K bytes
    - Click Count (0)
Back to Top