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

test(leftovers): add tests to hit uncovered code #235

Merged
merged 13 commits into from
Aug 14, 2019

Conversation

callenmacphee
Copy link
Contributor

@callenmacphee callenmacphee commented Aug 12, 2019

Adds miscellaneous tests to cover leftover uncovered code.

Improvements

Adds missing unit tests

@github-actions
Copy link

github-actions bot commented Aug 12, 2019

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

Copy link
Contributor

@paulineribeyre paulineribeyre left a comment

Choose a reason for hiding this comment

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

/indexd/index/drivers/query/__init__.py is covered at 75% because of 2 abstract methods that use pass instead of raise NotImplementedError("TODO") like our other abstract methods do. NotImplementedError is ignored by the coverage report, so if we change these functions to use it the coverage for this file will be 100%

tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_leftovers.py Outdated Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
tests/test_client.py Show resolved Hide resolved
Copy link
Contributor

@paulineribeyre paulineribeyre left a comment

Choose a reason for hiding this comment

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

87% :D

@callenmacphee callenmacphee merged commit b9519ac into master Aug 14, 2019
@callenmacphee callenmacphee deleted the test/improve-coverage branch August 14, 2019 20:29
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.

2 participants