Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_header_param_model (0.11 sec)

  1. tests/test_tutorial/test_header_param_models/test_tutorial001.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.header_param_models.{request.param}")
    
        client = TestClient(mod.app)
        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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top