Skip to content

Commit 272f0af

Browse files
committed
Complete tests
1 parent 4c61320 commit 272f0af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_autocomponent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def test_component_folder_selection(self):
111111
from djangocms_frontend.component_pool import find_cms_component_templates
112112

113113
all_components = find_cms_component_templates("cms_components")
114+
path_components = find_cms_component_templates("cms_components/ui")
114115
private_components = find_cms_component_templates("my_components")
115116
no_components = find_cms_component_templates("no_components")
116117

@@ -119,5 +120,6 @@ def test_component_folder_selection(self):
119120
("tests.test_app", "test_app/cms_components/with_slots.html"),
120121
("tests.test_app", "test_app/cms_components/ui/button.html"),
121122
}
123+
assert path_components == [("tests.test_app", "test_app/cms_components/ui/button.html")]
122124
assert private_components == [("tests.test_app", "test_app/my_components/test_component.htm")]
123125
assert no_components == []

0 commit comments

Comments
 (0)