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

Estelle/test meta analysis #365

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Conversation

EstelleDa
Copy link
Member

Add some more basic test cases of meta analysis. Nearly the same as before, but changing the score set's creators.

@EstelleDa EstelleDa linked an issue Dec 10, 2024 that may be closed by this pull request
Copy link
Collaborator

@bencap bencap left a 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"
Copy link
Collaborator

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.

Copy link
Member Author

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"
Copy link
Collaborator

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.

@bencap bencap changed the base branch from release-2024.4.3 to release-2024.4.4 December 10, 2024 22:36
@EstelleDa EstelleDa merged commit 331fb8d into release-2024.4.4 Dec 17, 2024
5 checks passed
@EstelleDa EstelleDa deleted the estelle/testMetaAnalysis branch December 17, 2024 04:55
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

Successfully merging this pull request may close these issues.

Add some meta-analysis tests
2 participants