diff --git a/docs/tutorial/tests.rst b/docs/tutorial/tests.rst index d8f2a931..f97d19df 100644 --- a/docs/tutorial/tests.rst +++ b/docs/tutorial/tests.rst @@ -270,7 +270,7 @@ messages. with app.app_context(): assert get_db().execute( - "select * from user where username = 'a'", + "SELECT * FROM user WHERE username = 'a'", ).fetchone() is not None diff --git a/examples/tutorial/tests/test_auth.py b/examples/tutorial/tests/test_auth.py index 3ac9a12c..0bc0a9db 100644 --- a/examples/tutorial/tests/test_auth.py +++ b/examples/tutorial/tests/test_auth.py @@ -16,7 +16,7 @@ def test_register(client, app): # test that the user was inserted into the database with app.app_context(): assert ( - get_db().execute("select * from user where username = 'a'").fetchone() + get_db().execute("SELECT * FROM user WHERE username = 'a'").fetchone() is not None )