Repository navigation
Pass arguments for unsupported fields in the model test - #72
Merged
Merged
Conversation
The test expected p2a to warn about each field it cannot expose. A p2a change prints those warnings only when an argument for the field is passed. Passing the arguments produces the warnings with both the released p2a and the new one. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #72 +/- ##
=======================================
Coverage 96.52% 96.52%
=======================================
Files 5 5
Lines 230 230
Branches 7 7
=======================================
Hits 222 222
Misses 7 7
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
test_get_arg_from_modelexpected p2a to warn about each model field it cannot expose. python-project-templates/p2a#45 prints those warnings only when an argument for the field is passed, so the test now passes one argument per unsupported field and expects them among the unparsed extras.The test passes with p2a 0.1.2 and with the p2a#45 branch. Merge this before a p2a release with that change, or this repository's CI fails on the new p2a.
Type of Change
Test update.
Checklist
make lint)make test)