-
Notifications
You must be signed in to change notification settings - Fork 6
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 article image heights + failing tests #400
Conversation
This was caused by using the images' `naturalHeight` property without making sure that the images were completely loaded, which caused `naturalHeight` to be 0.
Also renamed it to the standard `robots.txt`.
This was mainly for preventing the CI server (GitHub Actions) from testing with too new versions of the required packages, which caused the testing to fail. In the case that prompted this change, it was `django-hosts` that hadn't yet added support for the newest version of Django (which was released yesterday), which caused the following error: `ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation'`
Codecov Report
@@ Coverage Diff @@
## dev #400 +/- ##
==========================================
- Coverage 82.77% 82.74% -0.03%
==========================================
Files 117 117
Lines 4150 4150
==========================================
- Hits 3435 3434 -1
- Misses 715 716 +1
Continue to review full report at Codecov.
|
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.
Just a general question regarding disallowing web crawlers to crawl on certain URLs, other than that it looks good to me :)
# Conflicts: # requirements.txt
robots.txt
files (f43c679, 590e183, 1e01ca4)>=
with==
inrequirements.txt
(fb9332c)