Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

3scale-api

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

3scale-api - npm Package Compare versions

Comparing version
0.31.0
to
0.32.0
+1
-1
3scale_api.egg-info/PKG-INFO
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

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 @@