Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_tuple_with_model_valid (0.15 sec)

  1. tests/test_tuples.py

        assert response.status_code == 422, response.text
    
    
    def test_tuple_with_model_valid():
        data = [{"x": 1, "y": 2}, {"x": 3, "y": 4}]
        response = client.post("/tuple-of-models/", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == data
    
    
    def test_tuple_with_model_invalid():
        data = [{"x": 1, "y": 2}, {"x": 3, "y": 4}, {"x": 5, "y": 6}]
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top