Skip to content

Commit

Permalink
Merge pull request #8461 from cfpb/deprecate/broken-super-test
Browse files Browse the repository at this point in the history
Remove broken and deprecated CFGOVPage unit test
  • Loading branch information
chosak committed Jun 11, 2024
2 parents 3912e5b + 39d1d85 commit 7e454c6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cfgov/v1/tests/models/test_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
from unittest import mock

from django.test import TestCase
from django.test.client import RequestFactory
Expand Down Expand Up @@ -29,12 +28,6 @@ def test_post_preview_cache_key_contains_page_id(self):
key = self.page.post_preview_cache_key
self.assertIn(str(self.page.id), key)

@mock.patch("builtins.super")
def test_serve_calls_super_on_non_ajax_request(self, mock_super):
self.page.serve(self.request)
mock_super.assert_called_once()
mock_super().serve.assert_called_with(self.request)


class TestCFGOVPageContext(TestCase):
def setUp(self):
Expand Down

0 comments on commit 7e454c6

Please sign in to comment.