3scale-api
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: 3scale-api | ||
| Version: 0.31.0 | ||
| Version: 0.32.0 | ||
| Summary: 3scale API python client | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/pestanko/3scale-api-python |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: 3scale-api | ||
| Version: 0.31.0 | ||
| Version: 0.32.0 | ||
| Summary: 3scale API python client | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/pestanko/3scale-api-python |
@@ -51,1 +51,4 @@ from tests.integration import asserts | ||
| assert backend.mapping_rules.list() | ||
| def test_backend_usages(backend, service, backend_usage): | ||
| assert backend.usages() == [backend_usage] |
@@ -281,11 +281,11 @@ """ Test CMS API """ | ||
| # 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_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'])[0] == cms_layout | ||
| # assert api.cms_layouts.select_by(title=cms_layout['title'])[0] == cms_layout | ||
| 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 | ||
@@ -292,0 +292,0 @@ def test_page_filter(api, cms_section, cms_page): |
@@ -1468,5 +1468,6 @@ import logging | ||
| @property | ||
| def usages(self) -> 'BackendUsages': | ||
| return BackendUsages(parent=self, instance_klass=BackendUsages) | ||
| def usages(self) -> list['BackendUsage']: | ||
| """ Returns list of backend usages where the backend is used.""" | ||
| return [usage for service in self.threescale_client.services.list() | ||
| for usage in service.backend_usages.select_by(backend_id=self['id'])] | ||
@@ -1473,0 +1474,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
190726
0.12%3940
0.08%