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

Simplify testing #37

Merged
merged 7 commits into from
Sep 11, 2023
Merged

Simplify testing #37

merged 7 commits into from
Sep 11, 2023

Conversation

lnrekerle
Copy link
Collaborator

Changes to testing so we do not need to access VEP, and there is less being created in the test file itself.

@lnrekerle lnrekerle requested a review from ielis September 8, 2023 19:33
@lnrekerle lnrekerle linked an issue Sep 8, 2023 that may be closed by this pull request
Copy link
Member

@ielis ielis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lnrekerle
looks good, thanks a lot!

While looking at the code, I added a few additional changes.

  • I think we can consider the toy HPO and the test cohort as fixtures, right? I turned these two into fixtures.
  • In predicate test, the predicates are instantiated instead of using them as fixtures. Thanks to removing the fixtures, we are left with a file with parameterized tests only. I think this structure is easier to read.
  • I removed the usage of HPO to get term names when creating the test cohort. We can just hard-code those strings, it's easier to see what's going on.
  • I fixed a bug where we were provided the chromosome as an int instead of a str (thanks PyCharm & type annotations! :) )

With all this in place, the tests (within package, outside package & doctests) pass.

Please have a look and merge if looks OK.

@lnrekerle lnrekerle merged commit 606604f into develop Sep 11, 2023
3 checks passed
@lnrekerle lnrekerle deleted the simplify_testing branch September 11, 2023 14:19
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.

Simplify testing
2 participants