chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@File : auth_api.py
|
||||
@Date : 2022-11-05
|
||||
@Author : Peng Shiyu
|
||||
"""
|
||||
from __future__ import print_function, unicode_literals, absolute_import, division
|
||||
|
||||
|
||||
def test_login(client):
|
||||
response = client.post('/api/login', json={
|
||||
'username': 'admin',
|
||||
'password': '123456'
|
||||
})
|
||||
|
||||
assert response.json['code'] == 0
|
||||
Reference in New Issue
Block a user