Skip to content

Commit

Permalink
Tests: Remove overrides for removed setting PROPAGATE_TEMPLATE_CONTEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
chris34 committed Oct 19, 2024
1 parent 6d97a8e commit 627ee2b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion tests/apps/forum/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def test_continue_user_topic(self):
response = self.client.get("/topic/%s/" % self.topic.slug, follow=True)
self.assertEqual(response.status_code, 403)

@override_settings(PROPAGATE_TEMPLATE_CONTEXT=True)
@patch('inyoka.forum.views.TOPICS_PER_PAGE', 4)
@patch('inyoka.forum.constants.TOPICS_PER_PAGE', 4)
def test_topiclist(self):
Expand Down
3 changes: 0 additions & 3 deletions tests/apps/portal/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ def test_get_status_code(self):
response = self.client.get(self.url)
self.assertEqual(response.status_code, 200)

@override_settings(PROPAGATE_TEMPLATE_CONTEXT=True)
def post_username(self, form_username):
User.objects.create(username=self.username)

Expand Down Expand Up @@ -683,14 +682,12 @@ def test_returns_404_if_page_does_no_exist(self):
with self.assertRaises(Http404):
static_page(request, 'should_no_exist')

@override_settings(PROPAGATE_TEMPLATE_CONTEXT=True)
def test_content(self):
page = StaticPage.objects.create(key='foo', title='foo')
response = self.client.get(page.get_absolute_url())

self.assertEqual(response.context['title'], page.title)

@override_settings(PROPAGATE_TEMPLATE_CONTEXT=True)
def test_title(self):
content = 'some random text'
page = StaticPage.objects.create(key='foo', title='foo', content=content)
Expand Down
1 change: 0 additions & 1 deletion tests/apps/wiki/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def setUp(self):
self.client.defaults['HTTP_HOST'] = 'wiki.%s' % settings.BASE_DOMAIN_NAME
self.client.login(username='admin', password='admin')

@override_settings(PROPAGATE_TEMPLATE_CONTEXT=True)
@override_settings(WIKI_REVISIONS_PER_PAGE=5)
def test_log(self):
p50 = Page.objects.create('Testpage50', 'rev 0', user=self.admin, note='rev 0')
Expand Down

0 comments on commit 627ee2b

Please sign in to comment.