mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-01 18:19:18 -05:00
refactor(tests): remove all pytest.skip patterns for honest test results
- 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.
This commit is contained in:
@@ -159,7 +159,6 @@ def test_regression_layernorm_gradient_flow():
|
||||
print("✅ LayerNorm gradient flow regression test passed")
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Requires weight.requires_grad=True by default; use optimizer pattern instead")
|
||||
def test_regression_embedding_requires_grad():
|
||||
"""
|
||||
Regression test for Issue #6: Embedding didn't preserve requires_grad.
|
||||
|
||||
Reference in New Issue
Block a user