Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for empty (0.55 sec)

  1. tests/test_query.py

    
    def test_query_list_empty():
        response = client.get("/query/list/")
        assert response.status_code == 422
    
    
    def test_query_list_default():
        response = client.get("/query/list-default/?device_ids=1&device_ids=2")
        assert response.status_code == 200
        assert response.json() == [1, 2]
    
    
    def test_query_list_default_empty():
        response = client.get("/query/list-default/")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_post_body_empty_list(client: TestClient):
        response = client.put("/items/5", json=[])
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_post_body_empty_list(client: TestClient):
        response = client.put("/items/5", json=[])
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.4K bytes
    - Viewed (2)
  4. tests/test_tutorial/test_body_multiple_params/test_tutorial003_py310.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    @needs_py310
    def test_post_body_empty_list(client: TestClient):
        response = client.put("/items/5", json=[])
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py310.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    @needs_py310
    def test_post_body_empty_list(client: TestClient):
        response = client.put("/items/5", json=[])
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py39.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    @needs_py39
    def test_post_body_empty_list(client: TestClient):
        response = client.put("/items/5", json=[])
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top