Merge pull request #4193 from Elahi-cs/sql-fix

Small SQL formatting fix
This commit is contained in:
David Lord 2021-07-07 10:59:04 -07:00 committed by GitHub
commit e7b16b5ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
)