diff options
| author | Aymeric Augustin | 2013-11-24 17:30:49 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-24 17:30:49 +0100 |
| commit | 57a6e261c2768503e1401f99cefd4470c8dc5e8f (patch) | |
| tree | ad0f1553d0155988701b1d63f0f4438ae127bcab /tests | |
| parent | 3d72c1fa927f129b2a79ea3496cce3262516705b (diff) | |
| download | django-debug-toolbar-57a6e261c2768503e1401f99cefd4470c8dc5e8f.tar.bz2 | |
Update all panels to follow the public API.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/panels/test_profiling.py | 2 | ||||
| -rw-r--r-- | tests/panels/test_request.py | 4 | ||||
| -rw-r--r-- | tests/panels/test_sql.py | 2 | ||||
| -rw-r--r-- | tests/panels/test_template.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/panels/test_profiling.py b/tests/panels/test_profiling.py index ccc8f2f..7e61c62 100644 --- a/tests/panels/test_profiling.py +++ b/tests/panels/test_profiling.py @@ -28,7 +28,7 @@ class ProfilingPanelTestCase(BaseTestCase): self.panel.process_view(self.request, regular_view, ('profiling',), {}) self.panel.process_response(self.request, self.response) self.assertIn('func_list', self.panel.get_stats()) - self.assertIn('regular_view', self.panel.content()) + self.assertIn('regular_view', self.panel.content) # These two tests fail randomly for a reason I don't understand. diff --git a/tests/panels/test_request.py b/tests/panels/test_request.py index 16843c4..1c60ec7 100644 --- a/tests/panels/test_request.py +++ b/tests/panels/test_request.py @@ -19,7 +19,7 @@ class RequestPanelTestCase(BaseTestCase): self.request.session['là'.encode('utf-8')] = 'là'.encode('utf-8') self.panel.process_request(self.request) self.panel.process_response(self.request, self.response) - content = self.panel.content() + content = self.panel.content if six.PY3: self.assertIn('où', content) else: @@ -30,4 +30,4 @@ class RequestPanelTestCase(BaseTestCase): self.request.path = '/non_ascii_request/' self.panel.process_request(self.request) self.panel.process_response(self.request, self.response) - self.assertIn('nôt åscíì', self.panel.content()) + self.assertIn('nôt åscíì', self.panel.content) diff --git a/tests/panels/test_sql.py b/tests/panels/test_sql.py index a6990a3..ece533c 100644 --- a/tests/panels/test_sql.py +++ b/tests/panels/test_sql.py @@ -55,7 +55,7 @@ class SQLPanelTestCase(BaseTestCase): self.panel.process_response(self.request, self.response) # ensure the panel renders correctly - self.assertIn('café', self.panel.content()) + self.assertIn('café', self.panel.content) @unittest.skipUnless(connection.vendor == 'postgresql', 'Test valid only on PostgreSQL') diff --git a/tests/panels/test_template.py b/tests/panels/test_template.py index 8cb29f2..f964727 100644 --- a/tests/panels/test_template.py +++ b/tests/panels/test_template.py @@ -46,4 +46,4 @@ class TemplatesPanelTestCase(BaseTestCase): c = Context({'object': NonAsciiRepr()}) t.render(c) self.panel.process_response(self.request, self.response) - self.assertIn('nôt åscíì', self.panel.content()) + self.assertIn('nôt åscíì', self.panel.content) |
