Skip to content

Commit 5f47c0c

Browse files
committed
fix DeprecationWarning in unit tests
1 parent 950a333 commit 5f47c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_blacklist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def setUp(self):
2929

3030
@self.app.route('/auth/login', methods=['POST'])
3131
def login():
32-
username = request.json['username']
32+
username = request.get_json()['username']
3333
ret = {
3434
'access_token': create_access_token(username, fresh=True),
3535
'refresh_token': create_refresh_token(username)

0 commit comments

Comments
 (0)