Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_post_with_only_name (0.19 sec)

  1. tests/test_tutorial/test_body/test_tutorial001_py310.py

        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": "Some Foo",
            "tax": 0.3,
        }
    
    
    @needs_py310
    def test_post_with_only_name(client: TestClient):
        response = client.post("/items/", json={"name": "Foo"})
        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
    - 15K bytes
    - Viewed (1)
  2. tests/test_tutorial/test_body/test_tutorial001.py

        )
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": "Some Foo",
            "tax": 0.3,
        }
    
    
    def test_post_with_only_name(client: TestClient):
        response = client.post("/items/", json={"name": "Foo"})
        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
    - 14.7K bytes
    - Viewed (5)
Back to top