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.
Files changed (35) hide show
  1. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/PKG-INFO +1 -1
  2. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/__init__.py +1 -1
  3. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/render/options.py +1 -1
  4. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/PKG-INFO +1 -1
  5. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/setup.py +1 -1
  6. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_util_srte.py +4 -5
  7. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/LICENSE +0 -0
  8. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/README.md +0 -0
  9. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/automate.py +0 -0
  10. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/__init__.py +0 -0
  11. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/item_type.py +0 -0
  12. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/embedded/styletype.py +0 -0
  13. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/gql.py +0 -0
  14. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/__init__.py +0 -0
  15. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/converter.py +0 -0
  16. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/metadata.py +0 -0
  17. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/helper/node_to_html.py +0 -0
  18. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/render/__init__.py +0 -0
  19. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils/utils.py +0 -0
  20. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/SOURCES.txt +0 -0
  21. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/dependency_links.txt +0 -0
  22. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/contentstack_utils.egg-info/top_level.txt +0 -0
  23. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/setup.cfg +0 -0
  24. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/__init__.py +0 -0
  25. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/convert_style.py +0 -0
  26. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_default_opt_others.py +0 -0
  27. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_gql_to_html_func.py +0 -0
  28. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_helper_node_to_html.py +0 -0
  29. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_item_types.py +0 -0
  30. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_metadata.py +0 -0
  31. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_option_render_mark.py +0 -0
  32. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_render_default_options.py +0 -0
  33. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_render_options.py +0 -0
  34. {contentstack_utils-1.3.0 → contentstack_utils-1.3.1}/tests/test_style_type.py +0 -0
  35. {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.0
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
@@ -31,6 +31,6 @@ __all__ = (
31
31
  __title__ = 'contentstack_utils'
32
32
  __author__ = 'contentstack'
33
33
  __status__ = 'debug'
34
- __version__ = '1.3.0'
34
+ __version__ = '1.3.1'
35
35
  __endpoint__ = 'cdn.contentstack.io'
36
36
  __contact__ = 'support@contentstack.com'
@@ -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"]["href"], inner_html)
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.0
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
@@ -15,7 +15,7 @@ setup(
15
15
  long_description_content_type="text/markdown",
16
16
  url="https://github.com/contentstack/contentstack-utils-python",
17
17
  license='MIT',
18
- version='1.3.0',
18
+ version='1.3.1',
19
19
  install_requires=[
20
20
 
21
21
  ],
@@ -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 = response = Utils.json_to_html([self._json_data], array_str, Options())
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.linkInPHtml, self._json_data['reference'])
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']