Small SQL formatting fix

This commit is contained in:
Elahi-cs 2021-07-07 19:40:21 +02:00
parent 85c35bd615
commit 3127c304ec
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
)