-
Notifications
You must be signed in to change notification settings - Fork 130
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
More tests for align.py #477
Conversation
I'm not sure it's necessary to have a I don't have |
tests/test_align.py
Outdated
from augur import align | ||
|
||
import pytest | ||
|
||
cur_dir = pathlib.Path(__file__+'/..').resolve() |
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.
It should be safe to assume that the current working directory during test execution is the root of the project, so test fixtures can be referred to by simple strings like "test/data/align/test_aligned_sequences.fasta"
.
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.
Ok. I like that better.
Reverting the |
@elebow That comment was premature. Removing
|
@groutr See https://docs.pytest.org/en/latest/usage.html#calling-pytest-through-python-m-pytest. Pytest behaves differently depending on whether it is invoked as I personally prefer to use a helper script, like |
@elebow, oops, I didn't see the |
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.
Thank you, @groutr! These tests look good to me.
Would you mind rebasing these 5 commits into a single commit with a clear description of the tests you've added? That will make the final merge cleaner on our end.
@huddlej, I'll do this first thing Monday morning. |
Description of proposed changes
Increase test coverage for
align.py
.This PR also adds an
__init__.py
to the tests directory so that the augur doesn't have to be installed to run the tests. This may, or may not, be desired. Open to feedback.Related issue(s)
Related to #476