File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,23 @@ def setUpClass(cls):
1616 django .setup ()
1717 super (TestViews , cls ).setUpClass ()
1818
19- @unittest .mock .patch ('async_include.templatetags.async_include.get_unique_template_id' )
20- @unittest .mock .patch ('async_include.templatetags.async_include.slugify_template_path' )
21- def test_async_include (self , mock_slugify_template_path , mock_get_unique_template_id ):
19+ @unittest .mock .patch (
20+ 'async_include.templatetags.async_include.get_unique_template_id'
21+ )
22+ @unittest .mock .patch (
23+ 'async_include.templatetags.async_include.slugify_template_path'
24+ )
25+ def test_async_include (
26+ self , mock_slugify_template_path , mock_get_unique_template_id
27+ ):
2228 mock_slugify_template_path .return_value = 'test_template_path'
2329 mock_get_unique_template_id .return_value = 'test_uuid'
2430
2531 test_async_include_html = render_to_string ('test_async_include.html' )
2632
2733 self .assertIn (
28- '<script id="script_test_template_path__test_uuid" type="text/javascript">' ,
34+ '<script id="script_test_template_path__test_uuid" '
35+ 'type="text/javascript">' ,
2936 test_async_include_html
3037 )
3138 self .assertIn (
You can’t perform that action at this time.
0 commit comments