mirror of
https://github.com/apache/superset.git
synced 2026-09-01 21:11:28 +00:00
test(tasks): authorize get_status polling test and OAuth2 callback tests for session binding
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
b0a118a761
commit
487a838cf3
@@ -700,6 +700,10 @@ def test_oauth2_happy_path(
|
||||
return_value=None,
|
||||
)
|
||||
|
||||
mocker.patch(
|
||||
"superset.commands.database.oauth2.get_user_id",
|
||||
return_value=1,
|
||||
)
|
||||
state: OAuth2State = {
|
||||
"user_id": 1,
|
||||
"database_id": 1,
|
||||
@@ -776,6 +780,10 @@ def test_oauth2_permissions(
|
||||
return_value=None,
|
||||
)
|
||||
|
||||
mocker.patch(
|
||||
"superset.commands.database.oauth2.get_user_id",
|
||||
return_value=1,
|
||||
)
|
||||
state: OAuth2State = {
|
||||
"user_id": 1,
|
||||
"database_id": 1,
|
||||
@@ -857,6 +865,10 @@ def test_oauth2_multiple_tokens(
|
||||
return_value=None,
|
||||
)
|
||||
|
||||
mocker.patch(
|
||||
"superset.commands.database.oauth2.get_user_id",
|
||||
return_value=1,
|
||||
)
|
||||
state: OAuth2State = {
|
||||
"user_id": 1,
|
||||
"database_id": 1,
|
||||
|
||||
Reference in New Issue
Block a user