-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix log message printing the number of loaded composites #220
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #220 +/- ##
==========================================
+ Coverage 95.96% 95.97% +0.01%
==========================================
Files 14 14
Lines 3268 3280 +12
==========================================
+ Hits 3136 3148 +12
Misses 132 132
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Looks good to me, just one small question on caplog in the test.
@pytest.fixture(autouse=True) | ||
def inject_fixtures(self, caplog): | ||
"""Inject fixtures.""" | ||
self._caplog = caplog |
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.
What is the benefit of storing a _caplog
attribute and using that, rather than using the caplog
attribute in the tests directly?
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.
This is the only way to use fixtures in unittest.TestCase
classes.
Trollflow2 is printing a log message saying
Loading 1 composites
even when there are more. This PR fixes the log message.flake8 trollflow2