Repository navigation
fix(curriculum): add actionable classes assertion messages (batch 2) - #161
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Add repository-relative file comments and wrap long assertions without changing predicates, evaluation order, or failure messages. Refs abhiksark#85.
abhiksark
left a comment
There was a problem hiding this comment.
Reviewed all six checks against #85 and the contributor rules. All eight previously bare assertions now have useful messages; predicates, execution order, side effects, and success output are preserved. Local branch tests (215), current-dev integration tests (238), fixture verification, build, installed-wheel smoke, and all eight hosted CI jobs passed.
|
thanks for the review. |
Summary
Add actionable messages to all eight previously bare assertions across
checks/classes/classes7.pythroughclasses12.py, completing #85. Assertion predicates, evaluation order, helper statements, and success output are unchanged.The maintainer follow-up adds repository-relative file comments and wraps long lines to the 80-column limit. Full AST comparison confirms that follow-up preserves the existing failure messages and execution behavior.
Closes #85.
Tests
Validated head:
eaf325e922e84ce333e8d8257ab104859aea0190on Linux, Python 3.13.13.python -m pytest -q: 215 passed.python -m pythonlings --root tests/fixtures/passing_curriculum verify: passing1 and passing2 passed.PIP_CONFIG_FILE=/dev/null PIP_INDEX_URL=https://pypi.org/simple PIP_EXTRA_INDEX_URL= PIP_DEFAULT_TIMEOUT=15 PIP_RETRIES=0 python -m build --outdir /tmp/pythonlings-pr-loop.dfKE0X/pr-161-dist: source and wheel distributions built./tmp/pythonlings-pr-loop.dfKE0X/wheel-venv/bin/python -m pip install --no-deps --force-reinstall /tmp/pythonlings-pr-loop.dfKE0X/pr-161-dist/pythonlings-0.4.4-py3-none-any.whl: installed successfully into a temporary environment.git diff --check: passed.Hosted CI must pass at this head before squash merge into
dev.Checklist
devfrom afix/branchIntegration validation: applied this PR to
devatc93566e29034eea75a51f91ab90c98fd6e1b43d6and ranpython -m pytest -q: 238 passed. All eight hosted CI jobs passed at the reviewed head.