Missing testoutput#731
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 044e3a6. Configure here.
| cl.Chainladder().fit(tr) | ||
|
|
||
| .. testoutput:: | ||
|
|
There was a problem hiding this comment.
Missing print() causes testoutput directive to fail
Medium Severity
The .. testcode:: block calls cl.Chainladder().fit(tr) without wrapping it in print(), but the new .. testoutput:: directive expects Chainladder() as output. Sphinx's testcode blocks only capture explicit stdout — unlike an interactive REPL, bare expressions don't produce output. Every other testcode/testoutput pair in this codebase (e.g. in triangle.py and benktander.py) uses print(). This test will fail.
Reviewed by Cursor Bugbot for commit 044e3a6. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #731 +/- ##
=======================================
Coverage 85.25% 85.25%
=======================================
Files 85 85
Lines 4952 4952
Branches 645 645
=======================================
Hits 4222 4222
Misses 521 521
Partials 209 209
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Will do. I actually hadn't realized I had permissions to do that until recently. Then I saw you do it, and found out I could do it too! |


What does this pull request do?
Addressed #713's missing test output
Relevent Github ticket(s)?
#713
Note
Low Risk
Low risk documentation-only change that adds expected doctest output for an existing example; no runtime logic is modified.
Overview
Adds the missing
.. testoutput::block to theChainladder.fitdocstring example so doctests/docs validation can assert the expectedChainladder()repr output.Reviewed by Cursor Bugbot for commit 044e3a6. Bugbot is set up for automated code reviews on this repo. Configure here.