Changes for develop
This commit is contained in:
parent
52cd80b129
commit
53f98afd6c
4 changed files with 4 additions and 12 deletions
|
@ -1,4 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import absolute_import, print_function, unicode_literals
|
|
||||||
|
|
||||||
from .cms_apps import * # NOQA
|
|
|
@ -1,4 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from __future__ import absolute_import, print_function, unicode_literals
|
|
||||||
|
|
||||||
from .cms_toolbars import * # NOQA
|
|
|
@ -135,7 +135,7 @@ class MenuTest(BaseTest):
|
||||||
self.app_config_1.save()
|
self.app_config_1.save()
|
||||||
self.app_config_2.app_data.config.menu_empty_categories = False
|
self.app_config_2.app_data.config.menu_empty_categories = False
|
||||||
self.app_config_2.save()
|
self.app_config_2.save()
|
||||||
cache.clear()
|
self._reset_menus()
|
||||||
for lang in languages:
|
for lang in languages:
|
||||||
request = self.get_page_request(None, self.user, r'/%s/page-two/' % lang)
|
request = self.get_page_request(None, self.user, r'/%s/page-two/' % lang)
|
||||||
with smart_override(lang):
|
with smart_override(lang):
|
||||||
|
@ -149,7 +149,7 @@ class MenuTest(BaseTest):
|
||||||
self.app_config_1.save()
|
self.app_config_1.save()
|
||||||
self.app_config_2.app_data.config.menu_empty_categories = True
|
self.app_config_2.app_data.config.menu_empty_categories = True
|
||||||
self.app_config_2.save()
|
self.app_config_2.save()
|
||||||
cache.clear()
|
self._reset_menus()
|
||||||
|
|
||||||
def test_modifier(self):
|
def test_modifier(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -41,10 +41,10 @@ class PluginTest(BaseTest):
|
||||||
plugin_nocache = add_plugin(
|
plugin_nocache = add_plugin(
|
||||||
ph, 'BlogLatestEntriesPlugin', language='en', app_config=self.app_config_1
|
ph, 'BlogLatestEntriesPlugin', language='en', app_config=self.app_config_1
|
||||||
)
|
)
|
||||||
with self.assertNumQueries(53):
|
with self.assertNumQueries(39):
|
||||||
plugin_nocache.render_plugin(context, ph)
|
plugin_nocache.render_plugin(context, ph)
|
||||||
|
|
||||||
with self.assertNumQueries(17):
|
with self.assertNumQueries(15):
|
||||||
rendered = plugin.render_plugin(context, ph)
|
rendered = plugin.render_plugin(context, ph)
|
||||||
try:
|
try:
|
||||||
self.assertTrue(rendered.find('cms_plugin-djangocms_blog-post-abstract-1') > -1)
|
self.assertTrue(rendered.find('cms_plugin-djangocms_blog-post-abstract-1') > -1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue