Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_router_a (0.1 sec)

  1. tests/test_default_response_class_router.py

    
    def test_app_override():
        with client:
            response = client.get("/override")
        assert response.content == b"Hello World"
        assert response.headers["content-type"] == text_type
    
    
    def test_router_a():
        with client:
            response = client.get("/a")
        assert response.json() == {"msg": "Hello A"}
        assert response.headers["content-type"] == json_type
    
    
    def test_router_a_override():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5K bytes
    - Viewed (0)
  2. tests/test_default_response_class.py

    
    def test_app_override():
        with client:
            response = client.get("/override")
        assert response.content == b"Hello World"
        assert response.headers["content-type"] == text_type
    
    
    def test_router_a():
        with client:
            response = client.get("/a")
        assert response.json() == {"msg": "Hello A"}
        assert response.headers["content-type"] == orjson_type
    
    
    def test_router_a_override():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  3. tests/test_ws_router.py

        client = TestClient(app)
        with client.websocket_connect("/native/") as websocket:
            data = websocket.receive_text()
            assert data == "Hello, router with native prefix!"
    
    
    def test_router2():
        client = TestClient(app)
        with client.websocket_connect("/router2") as websocket:
            data = websocket.receive_text()
            assert data == "Hello, router!"
    
    
    def test_router_ws_depends():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top