Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_get_items_2 (0.07 sec)

  1. tests/test_infer_param_optionality.py

        assert response.json() == {"user_id": "abc123"}
    
    
    def test_get_items_1():
        """Check that /items returns expected data"""
        response = client.get("/items")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {"item_id": "i1", "user_id": "u1"},
            {"item_id": "i2", "user_id": "u2"},
        ]
    
    
    def test_get_items_2():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top