mirror of
https://github.com/apache/superset.git
synced 2026-05-28 19:25:20 +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.