Skip to content

Commit

Permalink
fix: Request missing from test rendering (#7346)
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Jun 27, 2022
1 parent 966a90f commit eff54b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cms/tests/test_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ def insert_test_content(self):
slug=self.test_data9['slug'],
reverse_id=self.test_data9['reverse_id'], published=True)
p10 = create_page(self.test_data10['title'], INHERIT_WITH_OR_TEMPLATE_NAME, 'en',
slug=self.test_data10['slug'], parent=p9,
reverse_id=self.test_data10['reverse_id'], published=True)
slug=self.test_data10['slug'], parent=p9,
reverse_id=self.test_data10['reverse_id'], published=True)

# Reload test pages
self.test_page = self.reload(p.publisher_public)
Expand Down Expand Up @@ -281,6 +281,8 @@ def test_passed_plugin_context_processor(instance, placeholder, context):
plugin_rendering._standard_processors = {}

content_renderer = self.get_content_renderer()

context.update({'request': self.get_request()})
r = content_renderer.render_plugin(instance, context, self.test_placeholders['main'])
expected = (
self.test_data['text_main'] + # noqa: W504
Expand Down

0 comments on commit eff54b0

Please sign in to comment.