-
Notifications
You must be signed in to change notification settings - Fork 10
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 misplaced static() #7
Conversation
* static() alters the file name if it contains special chars
@mbourqui Thanks for the pull. Can you explain in what circumstances this crash occurs and what the stack trace is? |
Hi @jieter, Thanks for reaching back. It's been a while, but as far as I remember, the issue was that |
Since we don't use this feature ourselves, it is critical that will get covered by a test which checks if it shows the desires behavior. It shouldn't be too hard to add such a test, are you maybe able to do that? |
There are actually already some tests here: https://github.com/zostera/django-icons/blob/master/tests/test_image.py |
It's always nice to have a test exposing the crash along with the fix. Can we mimic the production situation in the tests, for example by using override_settings |
I will update the tests, but I need some more time. |
Great! |
Took me some time, but finally here are some more specific tests! |
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.
Looks good to me, @dyve?
Nice! Thanks @mbourqui! |
The
static()
method is called at the wrong place, needs to have the full page to the file or it will crash.Learnt it the hard way...