Skip to content

Commit 0db1a65

Browse files
committed
fix tests
1 parent 9b9d9a1 commit 0db1a65

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

djangocms_versioning/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import json
24
import warnings
35
from collections import OrderedDict

tests/test_locking.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ def test_editor_without_delete_versionlock_permission_can_edit_unlocked_content(
154154
with self.login_user_context(editor):
155155
response = self.client.get(url)
156156

157-
# Should succeed with 200 status - this is the key test
158-
# Without delete_versionlock permission, this would return 403
157+
# Should succeed with 200 status
159158
self.assertEqual(response.status_code, 200)
160159

161160
def test_editor_without_delete_versionlock_permission_can_edit_their_locked_content(self):

0 commit comments

Comments
 (0)