@@ -128,16 +128,19 @@ def test_widget_media_applied_cache_suffix(self):
128
128
tinymce_version = "6.8"
129
129
130
130
orig_config = tinymce .settings .DEFAULT_CONFIG
131
- with patch .dict (tinymce .settings .DEFAULT_CONFIG , {** orig_config , "cache_suffix" : f"?ver={ tinymce_version } " }):
131
+ with patch .dict (
132
+ tinymce .settings .DEFAULT_CONFIG ,
133
+ {** orig_config , "cache_suffix" : f"?ver={ tinymce_version } " },
134
+ ):
132
135
widget = TinyMCE ()
133
136
134
137
self .assertEqual (list (widget .media .render_css ()), [])
135
138
self .assertEqual (
136
139
widget .media .render_js (),
137
140
[
138
141
f'<script src="/tinymce/compressor/?ver={ tinymce_version } "></script>' ,
139
- f'<script src="/static/django_tinymce/init_tinymce.js?ver={ tinymce_version } "></script>'
140
- ]
142
+ f'<script src="/static/django_tinymce/init_tinymce.js?ver={ tinymce_version } "></script>' ,
143
+ ],
141
144
)
142
145
143
146
def test_tinymce_widget_required (self ):
@@ -158,7 +161,7 @@ def test_tinymce_widget_allow_translated_options(self):
158
161
orig_config = tinymce .settings .DEFAULT_CONFIG
159
162
style_formats = [{"title" : gettext_lazy ("Awesome style" ), "inline" : "strong" }]
160
163
with patch .dict (
161
- tinymce .settings .DEFAULT_CONFIG , {** orig_config , "style_formats" : style_formats }
164
+ tinymce .settings .DEFAULT_CONFIG , {** orig_config , "style_formats" : style_formats }
162
165
):
163
166
html = widget .render ("foobar" , "lorem ipsum" , attrs = {"id" : "id_foobar" })
164
167
self .assertIn ("Awesome style" , html )
0 commit comments