From 3127c304ecbc54387792c9ddff3c266645b67b8a Mon Sep 17 00:00:00 2001 From: Elahi-cs Date: Wed, 7 Jul 2021 19:40:21 +0200 Subject: [PATCH] Small SQL formatting fix --- docs/tutorial/tests.rst | 2 +- examples/tutorial/tests/test_auth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 )