-
Notifications
You must be signed in to change notification settings - Fork 77
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
Task: Set up pytest
and integrate unit testing into PR workflow
#1010
Comments
pytest
unit testing step to backendpytest
and integrate unit testing into PR workflow
I'd like to take a shot at this one. Seems important for work going forward. |
@rmartinsen assigned! thanks for tackling--lmk if you run into issues |
This ticket is moving along and the tests run fine on the backend. The one issue I'm running into is with test_diff_backup.py. While these are certainly useful, they aren't really classic unit tests in that they aren't isolated from each other and hit external resources (slack, gcp, email etc.). Would there be any issues with moving this out of tests and creating a simpler suite for this functionality? I'm not sure where it would go. Possibly |
Yeah, I think that's probably fine. Maybe @zigouras has opinions, since he's the one who wrote them? Fwiw, I'm not sure how switching to using hypertables will affect the data diff functionality. That's something I need to puzzle through--would be glad to get some help on it, if that's in your wheelhouse @rmartinsen. |
This issue has been marked as stale because it has been open for 30 days with no activity. |
Task Description
Configure the repository to use
pytest
for unit testing and integrate it into thepr_checks_backend
workflow. Ensure that every PR impacting thedata
directory and its subdirectories triggers a unit testing check.Steps
pytest
as a development dependency.pytest
:test_*.py
.pr_checks_backend
workflow:pytest
for PRs impacting thedata
directory and its subdirectories.Acceptance Criteria
pytest
is installed and configured in the repository.pytest
.pytest
is added to thepr_checks_backend
workflow.data
directory and its subdirectories.The text was updated successfully, but these errors were encountered: