-
Notifications
You must be signed in to change notification settings - Fork 2
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
Estelle/test meta analysis #365
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.
Looks good, thanks for adding these Estelle. Just left a couple minor comments.
assert score_set_1_refresh["metaAnalyzedByScoreSetUrns"] == [meta_score_set["urn"]] | ||
|
||
meta_score_set = (client.post(f"/api/v1/score-sets/{meta_score_set['urn']}/publish")).json() | ||
assert meta_score_set["urn"] == "urn:mavedb:00000001-0-1" |
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.
In so far as we check the URNs of test objects, I think we only need to check that the URN matches the URN RegEx.
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 added the RegEx checks to all meta-analysis tests, but I support keeping them cause the meta-analysis urn is more special. This way is more accurate. RegEx only confirms they match the basic rules, but can't make sure the middle one is number 0 or letters.
assert score_set_1_refresh["metaAnalyzedByScoreSetUrns"] == [meta_score_set["urn"]] | ||
|
||
meta_score_set = (client.post(f"/api/v1/score-sets/{meta_score_set['urn']}/publish")).json() | ||
assert meta_score_set["urn"] == "urn:mavedb:00000003-0-1" |
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.
Same RegEx comment as above.
Add some more basic test cases of meta analysis. Nearly the same as before, but changing the score set's creators.