contentstack-utils 1.3.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/PKG-INFO +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/__init__.py +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/render/options.py +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/PKG-INFO +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/setup.py +1 -1
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_util_srte.py +4 -5
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/LICENSE +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/README.md +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/automate.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/item_type.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/styletype.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/gql.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/converter.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/metadata.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/node_to_html.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/render/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/utils.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/SOURCES.txt +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/dependency_links.txt +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/top_level.txt +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/setup.cfg +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/__init__.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/convert_style.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_default_opt_others.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_gql_to_html_func.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_helper_node_to_html.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_item_types.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_metadata.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_option_render_mark.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_render_default_options.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_render_options.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_style_type.py +0 -0
- {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: contentstack_utils
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: contentstack_utils is a Utility package for Contentstack headless CMS with an API-first approach.
|
|
5
5
|
Home-page: https://github.com/contentstack/contentstack-utils-python
|
|
6
6
|
Author: contentstack
|
|
@@ -70,7 +70,7 @@ class Options:
|
|
|
70
70
|
if node_type == 'p':
|
|
71
71
|
return "<p>" + inner_html + "</p>"
|
|
72
72
|
if node_type == 'a':
|
|
73
|
-
return "<a href=\"{}\">{}</a>".format(node_obj["attrs"]["
|
|
73
|
+
return "<a href=\"{}\">{}</a>".format(node_obj["attrs"]["url"], inner_html)
|
|
74
74
|
if node_type == 'img':
|
|
75
75
|
return "<img src=\"{}\" />{}".format(node_obj["attrs"]["src"], inner_html)
|
|
76
76
|
if node_type == 'embed':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: contentstack_utils
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: contentstack_utils is a Utility package for Contentstack headless CMS with an API-first approach.
|
|
5
5
|
Home-page: https://github.com/contentstack/contentstack-utils-python
|
|
6
6
|
Author: contentstack
|
|
@@ -110,7 +110,7 @@ class TestSuperchargedUtils(unittest.TestCase):
|
|
|
110
110
|
|
|
111
111
|
def test_reference_list_in_supercharged_dict_to_html(self):
|
|
112
112
|
array_str = ['reference']
|
|
113
|
-
response =
|
|
113
|
+
response = Utils.json_to_html([self._json_data], array_str, Options())
|
|
114
114
|
self.assertEqual(Results.refImgHtml, response)
|
|
115
115
|
|
|
116
116
|
def test_nested_order_list_in_supercharged_dict_to_html(self):
|
|
@@ -118,11 +118,10 @@ class TestSuperchargedUtils(unittest.TestCase):
|
|
|
118
118
|
Utils.json_to_html([self._json_data], array_str, Options())
|
|
119
119
|
self.assertEqual(Results.nested_order_list_with_fragment, "<ol><li><fragment>List Item 1</fragment><ol><li>List Item 1.1</li><li>List Item 1.2</li><li>List Item 1.3</li></ol></li></ol>")
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
def test_reference_list_in_supercharged_dict_to_html(self):
|
|
121
|
+
def test_reference_image_in_supercharged_dict_to_html(self):
|
|
123
122
|
array_str = ['reference']
|
|
124
|
-
Utils.json_to_html([self._json_data], array_str, Options())
|
|
125
|
-
self.assertEqual(Results.
|
|
123
|
+
response = Utils.json_to_html([self._json_data], array_str, Options())
|
|
124
|
+
self.assertEqual(Results.refImgHtml, response)
|
|
126
125
|
|
|
127
126
|
def test_nested_order_list_in_supercharged_dict_to_html(self):
|
|
128
127
|
array_str = ['nested_order_list_with_fragment']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/__init__.py
RENAMED
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/item_type.py
RENAMED
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/styletype.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/converter.py
RENAMED
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/node_to_html.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|