Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 2 tests for filters by section_id for objects which have not section_id #140

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tests/integration/test_integration_cms.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ def test_files_filter(api, cms_file, cms_section):
assert api.cms_files.select_by(path=cms_file['path'])[0] == cms_file

# https://issues.redhat.com/browse/THREESCALE-9191?focusedId=22406548&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-22406548
#def test_partial_filter(api, cms_partial, cms_section):
# """ Test partial filtering """
# assert api.cms_partials.select_by(section_id=cms_section['id'])[0] == cms_partial
# assert api.cms_partials.select_by(system_name=cms_partial['system_name'])[0] == cms_partial

#def test_layout_filter(api, cms_layout, cms_section):
# """ Test layout filtering """
# assert api.cms_layouts.select_by(section_id=cms_section['id'])[0] == cms_layout
# assert api.cms_layouts.select_by(title=cms_layout['title'])[0] == cms_layout
def test_partial_filter(api, cms_partial, cms_section):
""" Test partial filtering """
assert api.cms_partials.select_by(section_id=cms_section['id']) == []
assert api.cms_partials.select_by(system_name=cms_partial['system_name'])[0] == cms_partial

def test_layout_filter(api, cms_layout, cms_section):
""" Test layout filtering """
assert api.cms_layouts.select_by(section_id=cms_section['id']) == []
assert api.cms_layouts.select_by(title=cms_layout['title'])[0] == cms_layout

def test_page_filter(api, cms_section, cms_page):
""" Test page filtering """
Expand Down