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

Create more robust check for old vs new book selection syntax #87

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

isaac091
Copy link
Collaborator

@isaac091 isaac091 commented Dec 12, 2023

Create more robust check for old vs new book selection syntax and give more descriptive error messages when syntaxes are mixed. Previous version allowed some things, e.g. ranges of books, to be used with the comma-separated syntax, but not others, e.g. chapter selections, and that was confusing. This version allows only basic book and testament selection to be separated with commas, which matches the get_books function, and adds error messages that tell the user they may have mixed syntaxes when there is a parsing error.


This change is Reviewable

…e more descriptive error messages when syntaxes are mixed
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dbac78e) 86.80% compared to head (cab85f4) 86.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
+ Coverage   86.80%   86.82%   +0.01%     
==========================================
  Files         226      226              
  Lines       13608    13629      +21     
==========================================
+ Hits        11813    11833      +20     
- Misses       1795     1796       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ma-separated syntax after the first selection
Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @isaac091)

@isaac091 isaac091 merged commit a359d10 into main Dec 12, 2023
14 checks passed
@isaac091 isaac091 deleted the get_chapters_descriptive_errors branch December 12, 2023 20:50
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.

3 participants