This commit is contained in:
@@ -231,7 +231,8 @@ with (
|
||||
body_content = response.body
|
||||
if isinstance(body_content, memoryview):
|
||||
body_content = bytes(body_content)
|
||||
assert "Invalid or expired OAuth state" in body_content.decode()
|
||||
response_data = body_content.decode()
|
||||
assert "oauth_state_expired" in response_data # 🔍 Проверяем новый формат ошибки
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_oauth_callback_missing_state(mock_request):
|
||||
|
||||
Reference in New Issue
Block a user