-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix tests for new heroku stack #516
Conversation
dd17bed
to
5f80113
Compare
055bee4
to
134d4c2
Compare
5c946c9
to
2ae2ece
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #516 +/- ##
=======================================
Coverage 96.70% 96.70%
=======================================
Files 121 121
Lines 5827 5833 +6
=======================================
+ Hits 5635 5641 +6
Misses 192 192
Continue to review full report in Codecov by Sentry.
|
02afb59
to
d9551e1
Compare
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.
Some food for thought. View full project report here.
electionpage/tests.py
Outdated
for scraper in ScrapableElectionPage.objects.get(slug='cuteslug').listOfScrapers.all(): | ||
# Wait for the object to be loaded | ||
self._ensure_eventually_asserts( | ||
lambda: ScrapableElectionPage.objects.filter(slug='cuteslug').exists() |
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.
lambda: ScrapableElectionPage.objects.filter(slug='cuteslug').exists() | |
ScrapableElectionPage.objects.filter(slug='cuteslug').exists |
Avoid unnecessarily wrapping ScrapableElectionPage.objects.filter.exists
in a lambda. More info.
d9551e1
to
b1438e5
Compare
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.
Some things to consider. View full project report here.
Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
Our previous Heroku infrastructure, the heroku-20 stack, is deprecated. I'm hoping to upgrade all of RCVis' infrastructure to a supported stack before the election, just in case. I thought this was completed in #513 and #514, but it looks like those upgraded our production stack but not our test infrastructure.
This PR makes all fixes necessary for Heroku CI to pass again on the new stack.