Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 532 for clientId (0.13 sec)

  1. tests/test_request_params/test_header/test_optional_str.py

    )
    def test_optional_str_missing(path: str):
        client = TestClient(app)
        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-str", "/model-optional-str"],
    )
    def test_optional_str(path: str):
        client = TestClient(app)
        response = client.get(path, headers={"p": "hello"})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. docs/pt/docs/index.md

    * Converter de e para JSON automaticamente.
    * Documentar tudo com OpenAPI, que poderá ser usado por:
        * Sistemas de documentação interativos.
        * Sistemas de clientes de geração de código automáticos, para muitas linguagens.
    * Fornecer diretamente 2 interfaces _web_ de documentação interativa.
    
    ---
    
    Nós apenas arranhamos a superfície, mas você já tem idéia de como tudo funciona.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_params_str_validations/test_tutorial002.py

        )
    
        client = TestClient(mod.app)
        return client
    
    
    def test_query_params_str_validations_no_query(client: TestClient):
        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
    
    
    def test_query_params_str_validations_q_empty_str(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. tests/test_request_params/test_header/test_required_str.py

                "in": "header",
            }
        ]
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-str", "/model-required-str"],
    )
    def test_required_str_missing(path: str):
        client = TestClient(app)
        response = client.get(path)
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
                    "loc": ["header", "p"],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. tests/test_dependency_overrides.py

        }
    
    
    def test_main_depends_q_foo():
        response = client.get("/main-depends/?q=foo")
        assert response.status_code == 200
        assert response.json() == {
            "in": "main-depends",
            "params": {"q": "foo", "skip": 0, "limit": 100},
        }
    
    
    def test_main_depends_q_foo_skip_100_limit_200():
        response = client.get("/main-depends/?q=foo&skip=100&limit=200")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial007_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.path_operation_advanced_configuration.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post(client: TestClient):
        yaml_data = """
            name: Deadpoolio
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_static_files/test_tutorial001.py

        response = client.get("/static/sample.txt")
        assert response.status_code == 200, response.text
        assert response.text == "This is a sample static file."
    
    
    def test_static_files_not_found(client: TestClient):
        response = client.get("/static/non_existent_file.txt")
        assert response.status_code == 404, response.text
    
    
    def test_openapi_schema(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py

    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_an_py39",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.authentication_error_status_code.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    def test_get_me(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_header_param_models/test_tutorial002.py

        mod = importlib.import_module(f"docs_src.header_param_models.{request.param}")
    
        client = TestClient(mod.app)
        client.headers.clear()
        return client
    
    
    def test_header_param_model(client: TestClient):
        response = client.get(
            "/items/",
            headers=[
                ("save-data", "true"),
                ("if-modified-since", "yesterday"),
                ("traceparent", "123"),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_query_params_str_validations/test_tutorial005.py

    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial005_py39"),
            pytest.param("tutorial005_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.query_params_str_validations.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top