File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from djangocms_snippet import admin as snippet_admin
9
9
from djangocms_snippet import cms_config
10
+ from djangocms_snippet .forms import SnippetForm
10
11
from djangocms_snippet .models import Snippet
11
12
12
13
from .utils .factories import SnippetWithVersionFactory
@@ -51,3 +52,10 @@ def test_admin_list_display_with_versioning(self):
51
52
)
52
53
self .assertEqual (list_display [- 1 ].short_description , 'actions' )
53
54
self .assertIn ("function ExtendedVersionAdminMixin._list_actions" , list_display [- 1 ].__str__ ())
55
+
56
+ def test_admin_uses_form (self ):
57
+ """
58
+ The SnippetForm provides functionality to make SnippetGroupers irrelevant to the user,
59
+ ensure the admin uses this.
60
+ """
61
+ self .assertEqual (self .snippet_admin .form , SnippetForm )
You can’t perform that action at this time.
0 commit comments