Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for test_a (0.04 sec)

  1. docs/pt/docs/advanced/async-tests.md

    # Testes Assíncronos { #async-tests }
    
    Você já viu como testar as suas aplicações **FastAPI** utilizando o `TestClient` que é fornecido. Até agora, você viu apenas como escrever testes síncronos, sem utilizar funções `async`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. 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){.internal-link target=_blank} no tutorial avançado.
    
    ///
    
    ## Separando testes { #separating-tests }
    
    Em uma aplicação real, você provavelmente teria seus testes em um arquivo diferente.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/normalizer/HankakuKanaToZenkakuKanaTest.java

            assertEquals("。「」、・", result);
        }
    
        @Test
        public void test_n() throws Exception {
            HankakuKanaToZenkakuKana normalizer = new HankakuKanaToZenkakuKana();
    
            String result = normalizer.normalize("ニホン", "field");
    
            assertEquals("ニホン", result);
        }
    
        @Test
        public void test_wo() throws Exception {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  4. docs/pt/docs/_llm-test.md

    # Arquivo de teste de LLM { #llm-test-file }
    
    Este documento testa se o <abbr title="Large Language Model – Modelo de Linguagem de Grande Porte">LLM</abbr>, que traduz a documentação, entende o `general_prompt` em `scripts/translate.py` e o prompt específico do idioma em `docs/{language code}/llm-prompt.md`. O prompt específico do idioma é anexado ao `general_prompt`.
    
    Os testes adicionados aqui serão vistos por todos os autores dos prompts específicos de idioma.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:17:03 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  5. 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_py39.py hl[36:38] *}
    
    ### Teste { #test-it }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. docs_src/settings/app02_py39/test_main.py

    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 515 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_wsgi/test_tutorial001.py

    client = TestClient(app)
    
    
    def test_flask():
        response = client.get("/v1/")
        assert response.status_code == 200, response.text
        assert response.text == "Hello, World from Flask!"
    
    
    def test_app():
        response = client.get("/v2")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 441 bytes
    - Viewed (1)
  8. tests/test_tutorial/test_testing/test_tutorial002.py

    from docs_src.app_testing.tutorial002_py39 import test_read_main, test_websocket
    
    
    def test_main():
        test_read_main()
    
    
    def test_ws():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 159 bytes
    - Viewed (0)
  9. tests/test_openapi_servers.py

            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    def foo():
        return {"message": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_app():
        response = client.get("/foo")
        assert response.status_code == 200, response.text
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py

    
    def test_redoc_html(client: TestClient):
        response = client.get("/redoc")
        assert response.status_code == 200, response.text
        assert "/static/redoc.standalone.js" in response.text
    
    
    def test_api(client: TestClient):
        response = client.get("/users/john")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.2K bytes
    - Viewed (0)
Back to top