Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_lax_accepts_json_content_type (0.1 seconds)

  1. tests/test_strict_content_type_app_level.py

    def test_lax_accepts_no_content_type():
        response = client_lax.post("/items/", content='{"key": "value"}')
        assert response.status_code == 200
        assert response.json() == {"key": "value"}
    
    
    def test_lax_accepts_json_content_type():
        response = client_lax.post("/items/", json={"key": "value"})
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 1.1K bytes
    - Click Count (0)
Back to Top