forked from orbit-oss/flask
Small SQL formatting fix
This commit is contained in:
parent
85c35bd615
commit
3127c304ec
2 changed files with 2 additions and 2 deletions
|
|
@ -270,7 +270,7 @@ messages.
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
assert get_db().execute(
|
assert get_db().execute(
|
||||||
"select * from user where username = 'a'",
|
"SELECT * FROM user WHERE username = 'a'",
|
||||||
).fetchone() is not None
|
).fetchone() is not None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ def test_register(client, app):
|
||||||
# test that the user was inserted into the database
|
# test that the user was inserted into the database
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
assert (
|
assert (
|
||||||
get_db().execute("select * from user where username = 'a'").fetchone()
|
get_db().execute("SELECT * FROM user WHERE username = 'a'").fetchone()
|
||||||
is not None
|
is not None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue