-
Notifications
You must be signed in to change notification settings - Fork 0
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
tests: use asset files #62
Conversation
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.
- I'm not sure what happened but it looks like the
pprint_csv_file
function is no longer printing to console? Is that happening for you? - Can you update all the
invalid_category
rule files (assets and qmd) with the changes you made to the parts sheet?
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.
edit: nvm.
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.
- For each test, can you use all the datasets and error report in the assets directory? I put them in there so we can test what I hope are all the cases.
- Can you say why the addL2 part was removed from the missing mandatory column parts sheet? I put it in there to make sure optional columns do not have a mandatory rule added to them
I am not sure if my comment is the same as @yulric, but I too was wondering about the tests.
|
I suggest deleting the If you do want to keep the |
This may need a discussion, but hear me out. What about moving the validation .qmd files into their respective folders within assets? We've got a small problem that we have to 'valiation-rules' folders. One in As a user, it would be nice to be able to go into rule in |
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.
The changes look excellent.
See my comments about the organization of the assets.
- It is tempting to validation rule .qmd, tests into the single asset folder -- or at least together in a folder.
Then put the validation rule README and validation-rule-list.csv in the parent directory of assets/validation-rules
.
-
as an aside, tests/common.py may be better placed in src and renamed something like test_utils.
-
I noted that some parts have names that have changed in the most common part table. We may want update partID names when we have a version 2 completed, especially if we have the schemaVersion indicate '2.0.0' as it does currently. The validation examples should work without updating the names because they are all self-contained -- perfect. However, there are a few sections of the rules that may break, such as reference to the missingness partIDs, which have changed in the most recent parts table.
This is a good question. The tests aren't part of the main package. I would suggest moving test assets into
Will fix in #69 |
I agree with doing something about the metadata folder. I'm about to move |
I'm about to move |
I think my previous comments cover this.
I think
Yeah, we should update partIDs when releasing v2 (or rc2). I've tried to keep everything consistent with the v2-rc1 names, and specified the '-rc.1' suffix in the version strings. There may still be some inconsistencies, but I'll fix them when I see them. |
7f44fea
to
da4cd44
Compare
Replace hardcoded parts/schemas in tests with parts/schemas loaded from the assets directory.
The remaining asset files will be incorporated in #69.