mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-23 18:35:24 +08:00
fix that the data validation global exception handler does not work (#40)
* fix that the data validation global exception handler does not work * update login api test * update the JSON login method to create the user ID of the token
This commit is contained in:
@ -31,7 +31,7 @@ class TestAuth:
|
||||
url=f'{self.users_api_base_url}/login', data={'username': '1', 'password': '1'}
|
||||
)
|
||||
assert response.status_code == 200
|
||||
assert response.json()['token_type'] == 'Bearer'
|
||||
assert response.json()['data']['token_type'] == 'Bearer'
|
||||
|
||||
async def test_register(self):
|
||||
async with AsyncClient(
|
||||
|
Reference in New Issue
Block a user