-
Notifications
You must be signed in to change notification settings - Fork 530
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
Add tests for the pontoon.insights module (#3015) #3079
Conversation
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.
Nice work!
Only left a few comments to hopefully make the code slightly more manageable.
Thank you for the review! I'll try to get around to making changes this weekend. |
0e594f2
to
872b9ce
Compare
Hi @mathjazz , let me know if there are any additional changes you would like to see. |
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.
Thanks for the update (and sorry for the slow response from my end!).
I only added a couple more comments.
Going forward, could you please just add commits with changes, rather than force-push? That way it'll be much easier to see what exactly has changed since the code has been looked at.
…match the project
Hi @mathjazz . No problem. Sorry for missing moving the fixtures from test_pretranslate.py. Hopefully I got everything this time. I'll use normal commits going forward instead of force pushes. |
Thanks for the update! Please see the failing tests. |
Please note that the pytest is still failing - we just introduced caching that causes it: |
Thank you for pointing out the latest caching update. I was stumped why it was failing in ci/cd. After pulling and merging latest, I was able to reproduce the pytest failure occurring in the GitHub action. Clearing the cache prior to running the tests seems to fix it locally. I was looking into how to clear specific views out of the cache, but these solutions (https://stackoverflow.com/questions/2268417/expire-a-view-cache-in-django/2268583#2268583) are quite involved and could be brittle since they depend on the implementation within Django. |
Nicely done! Thank you for your contribution to Pontoon! |
…illa#3079)" This reverts commit 0afb7d7.
Fix #3015.
This is my first contribution to this project. Let me know if there are any improvements I can do.
make test