mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 18:53:18 +00:00
Clean up E265 errors
This commit is contained in:
parent
0143fb9944
commit
80c2b00e74
3 changed files with 10 additions and 12 deletions
|
|
@ -1,12 +1,11 @@
|
|||
### gravatar.py ###############
|
||||
### place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
|
||||
### at the top of your page template include this:
|
||||
### {% load gravatar %}
|
||||
### and to use the url do this:
|
||||
### <img src="{% gravatar_url 'someone@somewhere.com' %}">
|
||||
### or
|
||||
### <img src="{% gravatar_url sometemplatevariable %}">
|
||||
### just make sure to update the "default" image path below
|
||||
# place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
|
||||
# at the top of your page template include this:
|
||||
# {% load gravatar %}
|
||||
# and to use the url do this:
|
||||
# <img src="{% gravatar_url 'someone@somewhere.com' %}">
|
||||
# or
|
||||
# <img src="{% gravatar_url sometemplatevariable %}">
|
||||
# just make sure to update the "default" image path below
|
||||
|
||||
import hashlib
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,6 @@ class TestExtractPanelDefinitionsFromModelClass(TestCase):
|
|||
# A class with a 'panels' property defined should return that list
|
||||
result = extract_panel_definitions_from_model_class(EventPageSpeaker)
|
||||
self.assertEqual(len(result), 4)
|
||||
#print repr(result)
|
||||
self.assertTrue(any([isinstance(panel, ImageChooserPanel) for panel in result]))
|
||||
|
||||
def test_exclude(self):
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ class TestMinMaxOperation(ImageOperationTestCase):
|
|||
|
||||
filter_spec_error_tests = [
|
||||
'min',
|
||||
#'hello-800x600',
|
||||
# 'hello-800x600',
|
||||
'min-800',
|
||||
'min-abc',
|
||||
'min-800xabc',
|
||||
|
|
@ -307,7 +307,7 @@ class TestWidthHeightOperation(ImageOperationTestCase):
|
|||
|
||||
filter_spec_error_tests = [
|
||||
'width',
|
||||
#'hello-800',
|
||||
# 'hello-800',
|
||||
'width-800x600',
|
||||
'width-abc',
|
||||
'width-800-c100',
|
||||
|
|
|
|||
Loading…
Reference in a new issue