MCPcopy
hub / github.com/pallets/flask / test_create_update_validate

Function test_create_update_validate

examples/tutorial/tests/test_blog.py:69–72  ·  view source on GitHub ↗
(client, auth, path)

Source from the content-addressed store, hash-verified

67
68@pytest.mark.parametrize("path", ("/create", "/1/update"))
69def test_create_update_validate(client, auth, path):
70 auth.login()
71 response = client.post(path, data={"title": "", "body": ""})
72 assert b"Title is required." in response.data
73
74
75def test_delete(client, auth, app):

Callers

nothing calls this directly

Calls 2

loginMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected