Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_cookie_json_list (0.16 seconds)

  1. tests/test_json_type.py

            "/header-json-list", headers={"x-items": json.dumps(["abc", "def"])}
        )
        assert response.status_code == 200, response.text
        assert response.json() == ["abc", "def"]
    
    
    def test_cookie_json_list():
        client.cookies.set("items", json.dumps(["abc", "def"]))
        response = client.get("/cookie-json-list")
        assert response.status_code == 200, response.text
        assert response.json() == ["abc", "def"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 18:41:43 GMT 2026
    - 1.7K bytes
    - Click Count (0)
Back to Top