diff options
| author | Aymeric Augustin | 2013-11-24 11:26:07 +0100 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-11-24 11:26:07 +0100 | 
| commit | 908b49cb7d2d527b701996f0d0b9e1e19e765819 (patch) | |
| tree | 545635570f264761d7314aa761cd36d1e6a56f7c /tests | |
| parent | e7692b33ca7fd3f7704d283d6b1368cdea198d59 (diff) | |
| download | django-debug-toolbar-908b49cb7d2d527b701996f0d0b9e1e19e765819.tar.bz2 | |
Rename some settings for clarity and consistency.
Thanks Jannis for his help.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/__init__.py | 5 | ||||
| -rw-r--r-- | tests/test_integration.py | 2 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/tests/__init__.py b/tests/__init__.py index 5be754e..f41162b 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -13,11 +13,12 @@ def update_toolbar_config(**kwargs):          dt_settings.CONFIG = {}          dt_settings.CONFIG.update(dt_settings.CONFIG_DEFAULTS)          dt_settings.CONFIG.update(kwargs['value'] or {}) - +        # This doesn't account for deprecated configuration options.  @receiver(setting_changed)  def update_toolbar_panels(**kwargs):      if kwargs['setting'] == 'DEBUG_TOOLBAR_PANELS':          dt_settings.PANELS = kwargs['value'] or dt_settings.PANELS_DEFAULTS          DebugToolbar._panel_classes = None -        # Not implemented: invalidate debug_toolbar.urls +        # Not implemented: invalidate debug_toolbar.urls. +        # This doesn't account for deprecated panel names. diff --git a/tests/test_integration.py b/tests/test_integration.py index 32fd09e..f3631e4 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -135,7 +135,7 @@ class DebugToolbarLiveTestCase(LiveServerTestCase):          self.assertIn("Name", table.text)          self.assertIn("Version", table.text) -    @override_settings(DEBUG_TOOLBAR_CONFIG={'RESULTS_CACHE_SIZE': 0}) +    @override_settings(DEBUG_TOOLBAR_CONFIG={'RESULTS_STORE_SIZE': 0})      def test_expired_store(self):          self.selenium.get(self.live_server_url + '/regular/basic/')          version_panel = self.selenium.find_element_by_id('VersionsPanel') | 
