mirror of https://github.com/pallets/flask.git
Small SQL formatting fix
This commit is contained in:
parent
85c35bd615
commit
3127c304ec
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue