- Move imports to module level in all *_core.py test files (16 files)
- Remove try/except/skip patterns from integration tests
- Remove @pytest.mark.skip decorators from gradient flow tests
- Convert environment validation skips to warnings for optional checks
- Change milestone tests from skip to fail when scripts missing
Tests now either pass or fail - no silent skipping that hides issues.
This ensures the test suite provides accurate feedback about what works.
test_autograd_core.py was incorrectly placed in the 05_dataloader test
directory. These tests belong in 06_autograd since they test autograd
functionality that doesn't exist until Module 06.
This was causing test failures when students ran tests progressively
through the modules (issues #1127, #1112).
Fixed module integration tests to only use modules up to and including
the current module (progressive disclosure). Tests were importing from
future modules which caused validation failures.
Changes:
- Module 05: Remove seed parameter (DataLoader does not support it)
- Module 06: Remove spatial/attention imports (modules 09, 12)
- Module 07: Make gradient tests lenient for partial autograd
- Module 08: Remove spatial imports (module 09)
- Module 09: Remove attention imports (module 12)
Validation result: All 20 modules now pass