You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix GitHub Actions test environment compatibility for notebook magic
- Make display, HTML, and widgets always available at module level for consistent testing
- Robust test for magic_without_ipython that handles decorator issues gracefully
- Updated test fixtures to use proper patching instead of setattr() calls
- Ensure tests work in both environments: with/without IPython installed
- Handle edge case where @cell_magic decorator behaves differently in different environments
Key changes:
- Import IPython functions with aliases then assign to module level for testing
- Test tries normal call first, falls back to __wrapped__ method if decorator issues
- More reliable patching that works regardless of IPython availability
All 279 tests pass locally and should now pass in GitHub Actions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments