Skip to content

Commit 33e6b5f

Browse files
authored
Mock the simple auth manager in the upstream asset events permission test (#75126)
SimpleAuthManager overrides get_authorized_assets since #72934, so patching the BaseAuthManager method left the real one in place, every asset stayed readable, and the test added in #72924 failed on main. Generated-by: Claude Opus 5
1 parent f04f123 commit 33e6b5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_run.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ def test_returns_only_events_from_source_dags_the_caller_may_read(
21812181
autospec=True,
21822182
)
21832183
@mock.patch(
2184-
"airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager.get_authorized_assets",
2184+
"airflow.api_fastapi.auth.managers.simple.simple_auth_manager.SimpleAuthManager.get_authorized_assets",
21852185
autospec=True,
21862186
)
21872187
def test_returns_only_events_of_assets_the_caller_may_read(

0 commit comments

Comments
 (0)