Skip to content

Commit

Permalink
refactor: test clean for ON_PUBLISH_REDIRECT setting
Browse files Browse the repository at this point in the history
  • Loading branch information
theShinigami committed Dec 6, 2024
1 parent 43e2753 commit 20eca71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,7 @@ def test_publish_view_redirects_according_to_settings(self):
def test_publish_resolvable_redirect_url(self):
from djangocms_versioning import conf

original_setting = conf.ON_PUBLISH_REDIRECT
conf.ON_PUBLISH_REDIRECT = "published"

user = self.get_superuser()
Expand Down Expand Up @@ -1419,6 +1420,8 @@ def test_publish_resolvable_redirect_url(self):

self.assertEqual(response.url, version_list_url(poll_version.content))

conf.ON_PUBLISH_REDIRECT = original_setting



def test_published_view_sets_modified_time(self):
Expand Down

0 comments on commit 20eca71

Please sign in to comment.