diff options
Diffstat (limited to 'tests/test_auth.py')
| -rw-r--r-- | tests/test_auth.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py index 96dd959..db55df7 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -11,7 +11,12 @@ from werkzeug.datastructures import Headers def test_register(client, app): response = client.post( "/auth/register", - data=json.dumps({"username": "a", "password": "a",}), + data=json.dumps( + { + "username": "a", + "password": "a", + } + ), content_type="application/json", ) @@ -19,7 +24,11 @@ def test_register(client, app): with app.app_context(): db_result = ( - get_db().execute("select * from users where username='a'",).fetchone() + get_db() + .execute( + "select * from users where username='a'", + ) + .fetchone() ) assert db_result is not None |
