mirror of
https://github.com/apache/superset.git
synced 2026-05-21 15:55:10 +00:00
Add _mock_sm_ctx() context manager to eliminate repeated boilerplate (g.user = None / app.appbuilder = MagicMock() / appbuilder.sm = mock_sm) across seven API key auth unit tests.