Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for multi (0.32 sec)

  1. tests/test_multi_query_errors.py

    @app.get("/items/")
    def read_items(q: List[int] = Query(default=None)):
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_multi_query():
        response = client.get("/items/?q=5&q=6")
        assert response.status_code == 200, response.text
        assert response.json() == {"q": [5, 6]}
    
    
    def test_multi_query_incorrect():
        response = client.get("/items/?q=five&q=six")
        assert response.status_code == 422, response.text
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. tests/test_multi_body_errors.py

    Sebastián Ramírez <******@****.***> 1713469257 -0500
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_py310.py

    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.query_params_str_validations.tutorial011_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_multi_query_values(client: TestClient):
        url = "/items/?q=foo&q=bar"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": ["foo", "bar"]}
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. docs_src/separate_openapi_schemas/tutorial001.py

    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> List[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 489 bytes
    - Viewed (0)
  5. docs_src/separate_openapi_schemas/tutorial002_py310.py

    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 486 bytes
    - Viewed (0)
  6. docs/pt/docs/project-generation.md

        * **Vue-router**.
        * **Vuetify** para belos componentes _material design_.
        * **TypeScript**.
        * Servidor Docker baseado em **Nginx** (configurado para rodar "lindamente" com Vue-router).
        * Construção multi-estágio Docker, então você não precisa salvar ou _commitar_ código compilado.
        * Testes _frontend_ rodados na hora da construção (pode ser desabilitado também).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Oct 17 05:50:32 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  7. docs/fr/docs/project-generation.md

        * **Vuetify** pour de magnifiques composants *material design*.
        * **TypeScript**.
        * Serveur Docker basé sur **Nginx** (configuré pour être facilement manipulé avec Vue-router).
        * Utilisation de *Docker multi-stage building*, pour ne pas avoir besoin de sauvegarder ou *commit* du code compilé.
        * Tests frontend exécutés à la compilation (pouvant être désactivés).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 02 14:18:06 GMT 2021
    - 6.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_query_params_str_validations/test_tutorial012_an_py39.py

        url = "/items/"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": ["foo", "bar"]}
    
    
    @needs_py39
    def test_multi_query_values(client: TestClient):
        url = "/items/?q=baz&q=foobar"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": ["baz", "foobar"]}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  9. docs/fr/docs/deployment/docker.md

    ### Raspberry Pi et autres architectures
    
    Si vous utilisez Docker sur un Raspberry Pi (qui a un processeur ARM) ou toute autre architecture, vous pouvez créer un `Dockerfile` à partir de zéro, basé sur une image de base Python (qui est multi-architecture) et utiliser Uvicorn seul.
    
    Dans ce cas, votre `Dockerfile` pourrait ressembler à ceci :
    
    ```Dockerfile
    FROM python:3.7
    
    RUN pip install fastapi uvicorn
    
    EXPOSE 80
    
    COPY ./app /app
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py310.py

    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.query_params_str_validations.tutorial011_an_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_multi_query_values(client: TestClient):
        url = "/items/?q=foo&q=bar"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": ["foo", "bar"]}
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top