oauth-instruct
All checks were successful
Deploy on push / deploy (push) Successful in 7m13s

This commit is contained in:
2025-09-23 21:34:48 +03:00
parent c1a7902937
commit 9d4e24732e
6 changed files with 140 additions and 6 deletions

View File

@@ -109,6 +109,7 @@ class TestOAuthFunctional:
"state": "valid_state",
"code": "auth_code_123"
}
request.path_params = {"provider": "google"} # Для callback используем path_params
request.url = "https://localhost:3000/oauth/google/callback?state=valid_state&code=auth_code_123"
request.headers = {"user-agent": "test-browser"}
request.client = MagicMock()
@@ -238,6 +239,7 @@ class TestOAuthFunctional:
# Тест 3: Callback без code (но с правильным OAuth клиентом)
request.query_params = {"state": "valid_state"}
request.path_params = {"provider": "google"} # Для callback используем path_params
oauth_data = {"provider": "google", "code_verifier": "test"}
mock_client = AsyncMock()