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

Validate value_if_not_asked to prevent invalid values #551

Merged
merged 2 commits into from
Oct 15, 2023

Conversation

plannigan
Copy link
Owner

Adds validation for each questions type. For BasicQuestion and Choice this validation has to happen in get_answers() since the validator depends on the current Answers.

Fixes #374

@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2023

Codecov Report

Merging #551 (8d8a795) into main (75fcc04) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #551      +/-   ##
==========================================
- Coverage   97.46%   97.46%   -0.01%     
==========================================
  Files           6        6              
  Lines         395      394       -1     
  Branches       80       79       -1     
==========================================
- Hits          385      384       -1     
  Misses          8        8              
  Partials        2        2              
Files Coverage Δ
columbo/_interaction.py 100.00% <100.00%> (ø)

@plannigan plannigan merged commit 1ea92ad into main Oct 15, 2023
20 checks passed
@plannigan plannigan deleted the value-not-asked-validation branch October 15, 2023 14:48
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.

value_if_not_asked validated in initializer
2 participants