-
Notifications
You must be signed in to change notification settings - Fork 80
Conversation
🚀 Deployed on https://deploy-preview-972--etna-docs.netlify.app |
def test_forecast_calls_vote(example_tsds: TSDataset, naive_pipeline_1: Pipeline, naive_pipeline_2: Pipeline): | ||
ensemble = VotingEnsemble(pipelines=[naive_pipeline_1, naive_pipeline_2]) | ||
ensemble.fit(ts=example_tsds) | ||
ensemble._vote = MagicMock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need MagicMock here, why not just Mock?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just use MagicMock
everywhere. Should I replace it with Mock
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As i understand MagicMock is useful testing the magic methods, but here we don't need it
Codecov Report
@@ Coverage Diff @@
## inference #972 +/- ##
============================================
Coverage ? 85.25%
============================================
Files ? 132
Lines ? 7710
Branches ? 0
============================================
Hits ? 6573
Misses ? 1137
Partials ? 0 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Before submitting (must do checklist)
Proposed Changes
Look #959.
Closing issues
Closes #959.