-
Notifications
You must be signed in to change notification settings - Fork 5
Skip validation #411
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
Skip validation #411
Conversation
Merging to
|
5f2ca0d
to
fa19218
Compare
please be sure this targets the |
yeah, done for both. (and branches rebased) |
You are the best! |
I want to approve this but CI is failing |
should be fixed. |
@@ -183,7 +183,7 @@ def extract_base_url(url): | |||
invalid_schema = {"invalid key": "invalid value", "node": ["Material"]} | |||
|
|||
# Test should be skipped | |||
assert local_cript_api._is_node_schema_valid(node_json=json.dumps(invalid_schema), is_patch=False) is True | |||
assert local_cript_api._is_node_schema_valid(node_json=json.dumps(invalid_schema), is_patch=False) is None |
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.
Beautiful!
Description
As discussed with @bearmit
A flag that disables partially the tests is being implemented.
At the moment we do not disable tests by default.
There is a text output that let's users know that they can disable the validation if needed.
Some checks are forced even as tests are disabled.
save
node.json
Changes
I changed the logging text to let users know that they can disable the validation.
And marked forced checks as such, letting the user know that they can't be disabled and that if they have issues, they should enable the tests.
Tests
I added a test that checks, that a wrong node is accepted if tests are disabled, but detected if forced.
Known Issues
None.
Notes
If we decide to disable tests by default, we just have to change the default value for
cript.API.skip_validation
toTrue
.Checklist
CONTRIBUTORS.md
) in the pull request source branch.