Skip to content
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: allow group commands to iterate on the groups multiple times #54

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

angela-tran
Copy link
Member

@angela-tran angela-tran commented Apr 9, 2024

Fixes #50

Read more about generator expressions (also called generator comprehensions) in its PEP or docs

this aligns more closely with how the actual 'get_concession_groups'
function behaves.
@angela-tran angela-tran self-assigned this Apr 9, 2024
Copy link

github-actions bot commented Apr 9, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  littlepay/commands
  groups.py
Project Total  

This report was generated by python-coverage-comment-action

if we iterate through the generator before converting it into a list,
the list will be empty. this was the exact cause of the bug.
@angela-tran angela-tran marked this pull request as ready for review April 9, 2024 17:34
@angela-tran angela-tran requested a review from a team as a code owner April 9, 2024 17:34
Copy link
Member

@thekaveman thekaveman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice TDD!

@angela-tran angela-tran merged commit 779a7e0 into main Apr 9, 2024
3 checks passed
@angela-tran angela-tran deleted the fix/0-matching-groups branch April 9, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commands that support group filtering output 0 as their matching groups
2 participants