Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for test_required_list_str (0.09 sec)

  1. tests/test_request_params/test_header/test_list.py

                    "input": AnyThing,
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str(path: str):
        client = TestClient(app)
        response = client.get(path, headers=[("p", "hello"), ("p", "world")])
        assert response.status_code == 200
        assert response.json() == {"p": ["hello", "world"]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. tests/test_request_params/test_query/test_list.py

                    "input": IsOneOf(None, {}),
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str(path: str):
        client = TestClient(app)
        response = client.get(f"{path}?p=hello&p=world")
        assert response.status_code == 200
        assert response.json() == {"p": ["hello", "world"]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. tests/test_request_params/test_form/test_list.py

                    "input": IsOneOf(None, {}),
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str(path: str):
        client = TestClient(app)
        response = client.post(path, data={"p": ["hello", "world"]})
        assert response.status_code == 200
        assert response.json() == {"p": ["hello", "world"]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. tests/test_request_params/test_body/test_list.py

                    "input": IsOneOf(None, {}),
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str(path: str):
        client = TestClient(app)
        response = client.post(path, json={"p": ["hello", "world"]})
        assert response.status_code == 200
        assert response.json() == {"p": ["hello", "world"]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top