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

allow-warnings and allow-infos need a unit test #126

Closed
ajnelson-nist opened this issue Feb 26, 2022 · 5 comments
Closed

allow-warnings and allow-infos need a unit test #126

ajnelson-nist opened this issue Feb 26, 2022 · 5 comments

Comments

@ajnelson-nist
Copy link
Contributor

PR-121 was supposed to enable a result of sh:conforms true if only sh:Info-level validation results were yielded. A unit test wasn't included in the PR to confirm --allow-infos worked. I also attempted to trigger --allow-warnings and didn't get an expected result. A test needs to be provided to confirm both command-line flags work.

@ajnelson-nist
Copy link
Contributor Author

The weekend's starting for me, but I'll try to get something posted Monday. Apologies for the trouble.

@ajnelson-nist
Copy link
Contributor Author

ajnelson-nist commented Feb 28, 2022

Glancing at the README, I see I missed updating the "Front-page" documentation. I'll pick that up in the resolving PR.

ajnelson-nist added a commit to ajnelson-nist/pySHACL that referenced this issue Feb 28, 2022
This test demonstrates the current implementation state fails.
A follow-on patch will correct the issue.

References:
* RDFLib#126
* The general style of this test was adapted from
  `/test/issues/test_96.py`.

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to ajnelson-nist/pySHACL that referenced this issue Feb 28, 2022
This lets `allow_infos` to influence the `all_warn` variable
appropriately.  With this patch, the new `test_126.py` now passes.

References:
* RDFLib#126

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to ajnelson-nist/pySHACL that referenced this issue Feb 28, 2022
This patch applies no creative input.  `pyshacl -h` was run in an 80x24
window, and the command output was copy-pasted into the corresponding
README section.

This patch was instigated by adding the flag for `--allow-infos`.

References:
* RDFLib#126

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
ajnelson-nist added a commit to ajnelson-nist/pySHACL that referenced this issue Feb 28, 2022
References:
* RDFLib#126

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@ajnelson-nist
Copy link
Contributor Author

@ashleysommer , PRs 127 and 128 are ready for your review. When both are merged, I'm fine with closing this Issue.

You had said in PR 121 that you were going to add corresponding flags with non-plural spellings. Did you still intend to do that before releasing?

@ashleysommer
Copy link
Collaborator

@ajnelson-nist
PySHACL v0.19.0 is released now with those two PRs incorporated. Can you please test and let me know if everything is working properly for you.

Fixed by #127
Fixed by #128

@ajnelson-nist
Copy link
Contributor Author

ajnelson-nist commented Mar 14, 2022

@ashleysommer , I found a few cleanup matters, filed in PR 137.

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

No branches or pull requests

2 participants