-
Notifications
You must be signed in to change notification settings - Fork 0
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
ci: overhaul test data #114
Conversation
|
||
def pytest_collection_modifyitems(items): | ||
"""Modify test items in place to ensure test modules run in a given order. | ||
When creating new test modules, be sure to add them here. |
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 had thought in a different project we made a check to ensure len(MODULE_ORDER) == len(# of files that start with test_)
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.
Good catch! I think we did that in anyvar.
tests/conftest.py
Outdated
def test_source_factory(EtlClass: Base): | ||
if os.environ.get("DISEASE_TEST", "").lower() == "true": | ||
test_class = EtlClass(db, test_data) # type: ignore | ||
if EtlClass.__name__ == "Mondo": # type: ignore |
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.
Use enum for source name
close #107 (I have no idea what "update branch protection" was referring to)