-
Notifications
You must be signed in to change notification settings - Fork 232
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
Make collection progress output less verbose #901
Make collection progress output less verbose #901
Conversation
0839436
to
6cc3a39
Compare
6cc3a39
to
d292e82
Compare
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.
👍 from me
statuses = [s for s, c in status_and_items] | ||
total_workers = len(statuses) | ||
workers_noun = "worker" if total_workers == 1 else "workers" | ||
if status_and_items and all(s == WorkerStatus.CollectionDone for s in statuses): |
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.
is not status_and_items
possible?
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.
In the current design not really, but given the type cannot prevent that, I thought better guard against that, because all([])
returns True and will break on the next line -- the first parametrization of test_get_workers_status_line
checks that.
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 a little gnarly, but the ux is no longer 🎊
Hopefully this fixes pytest-dev#907, as seems this is the only change in pytest-dev#901 which is somehow related.
Hopefully this fixes pytest-dev#907, as seems this is the only change in pytest-dev#901 which is somehow related.
Thank you ❤️ |
Fix #555