Skip to content

Commit a049018

Browse files
author
Marian Ganisin
authored
Merge pull request 3scale-qe#140 from mkudlej/cms_filters_section_id
add 2 tests for filters by section_id for objects which have not section_id
2 parents 9947c8d + 57fd6b9 commit a049018

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/integration/test_integration_cms.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,15 @@ def test_files_filter(api, cms_file, cms_section):
278278
assert api.cms_files.select_by(path=cms_file['path'])[0] == cms_file
279279

280280
# https://issues.redhat.com/browse/THREESCALE-9191?focusedId=22406548&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-22406548
281-
#def test_partial_filter(api, cms_partial, cms_section):
282-
# """ Test partial filtering """
283-
# assert api.cms_partials.select_by(section_id=cms_section['id'])[0] == cms_partial
284-
# assert api.cms_partials.select_by(system_name=cms_partial['system_name'])[0] == cms_partial
285-
286-
#def test_layout_filter(api, cms_layout, cms_section):
287-
# """ Test layout filtering """
288-
# assert api.cms_layouts.select_by(section_id=cms_section['id'])[0] == cms_layout
289-
# assert api.cms_layouts.select_by(title=cms_layout['title'])[0] == cms_layout
281+
def test_partial_filter(api, cms_partial, cms_section):
282+
""" Test partial filtering """
283+
assert api.cms_partials.select_by(section_id=cms_section['id']) == []
284+
assert api.cms_partials.select_by(system_name=cms_partial['system_name'])[0] == cms_partial
285+
286+
def test_layout_filter(api, cms_layout, cms_section):
287+
""" Test layout filtering """
288+
assert api.cms_layouts.select_by(section_id=cms_section['id']) == []
289+
assert api.cms_layouts.select_by(title=cms_layout['title'])[0] == cms_layout
290290

291291
def test_page_filter(api, cms_section, cms_page):
292292
""" Test page filtering """

0 commit comments

Comments
 (0)