refactor(mcp): extract duplicated app context + sm setup into helper
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.
A
Amin Ghadersohi committed
d675a976865986edb0204156ebe8e40fd83eb376
Parent: ba97a29