Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_include_empty (0.27 sec)

  1. tests/test_empty_router.py

            assert response.json() == ["OK"]
    
            response = client.get("/prefix/")
            assert response.status_code == 200, response.text
            assert response.json() == ["OK"]
    
    
    def test_include_empty():
        # if both include and router.path are empty - it should raise exception
        with pytest.raises(FastAPIError):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 22:37:34 GMT 2023
    - 805 bytes
    - Viewed (0)
Back to top