testit-python-commons 4.1.0__tar.gz → 4.1.0.post570__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 (79) hide show
  1. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/PKG-INFO +2 -2
  2. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/setup.py +2 -2
  3. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/sync_storage/sync_storage_runner.py +1 -1
  4. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/utils/html_escape_utils.py +6 -1
  5. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
  6. testit_python_commons-4.1.0.post570/src/testit_python_commons.egg-info/requires.txt +3 -0
  7. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/tests/test_html_escape_utils.py +20 -0
  8. testit_python_commons-4.1.0/src/testit_python_commons.egg-info/requires.txt +0 -3
  9. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/README.md +0 -0
  10. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/setup.cfg +0 -0
  11. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/__init__.py +0 -0
  12. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api/__init__.py +0 -0
  13. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api/completion_api.py +0 -0
  14. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api/health_api.py +0 -0
  15. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api/system_api.py +0 -0
  16. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api/test_results_api.py +0 -0
  17. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api/workers_api.py +0 -0
  18. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/api_client.py +0 -0
  19. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/apis/__init__.py +0 -0
  20. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/configuration.py +0 -0
  21. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/exceptions.py +0 -0
  22. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/__init__.py +0 -0
  23. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/health_status_response.py +0 -0
  24. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/register_request.py +0 -0
  25. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/register_response.py +0 -0
  26. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/set_worker_status_request.py +0 -0
  27. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/set_worker_status_response.py +0 -0
  28. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/shutdown_response.py +0 -0
  29. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/test_result_cut_api_model.py +0 -0
  30. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model/test_result_save_response.py +0 -0
  31. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/model_utils.py +0 -0
  32. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/models/__init__.py +0 -0
  33. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/api_client_syncstorage/rest.py +0 -0
  34. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit.py +0 -0
  35. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/__init__.py +0 -0
  36. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/app_properties.py +0 -0
  37. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/__init__.py +0 -0
  38. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/api_client.py +0 -0
  39. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/client_configuration.py +0 -0
  40. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/converter.py +0 -0
  41. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/helpers/__init__.py +0 -0
  42. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
  43. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
  44. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/models/__init__.py +0 -0
  45. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
  46. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
  47. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/configurations/__init__.py +0 -0
  48. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/configurations/properties_names.py +0 -0
  49. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/decorators.py +0 -0
  50. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/dynamic_methods.py +0 -0
  51. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/__init__.py +0 -0
  52. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/adapter_mode.py +0 -0
  53. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/fixture.py +0 -0
  54. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/link.py +0 -0
  55. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/link_type.py +0 -0
  56. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/outcome_type.py +0 -0
  57. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/status_type.py +0 -0
  58. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/step_result.py +0 -0
  59. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/test_result.py +0 -0
  60. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  61. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/__init__.py +0 -0
  62. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/adapter_manager.py +0 -0
  63. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  64. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/fixture_manager.py +0 -0
  65. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/fixture_storage.py +0 -0
  66. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/logger.py +0 -0
  67. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/plugin_manager.py +0 -0
  68. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/retry.py +0 -0
  69. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/step_manager.py +0 -0
  70. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/step_result_storage.py +0 -0
  71. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/sync_storage/__init__.py +0 -0
  72. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/services/utils.py +0 -0
  73. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/step.py +0 -0
  74. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons/utils/__init__.py +0 -0
  75. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  76. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  77. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/src/testit_python_commons.egg-info/top_level.txt +0 -0
  78. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/tests/test_app_properties.py +0 -0
  79. {testit_python_commons-4.1.0 → testit_python_commons-4.1.0.post570}/tests/test_dynamic_methods.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 4.1.0
3
+ Version: 4.1.0.post570
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
19
  Requires-Dist: tomli
20
- Requires-Dist: testit-api-client==7.5.5
20
+ Requires-Dist: testit-api-client==7.5.5.post570
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "4.1.0"
3
+ VERSION = "4.1.0.post570"
4
4
 
5
5
  setup(
6
6
  name='testit-python-commons',
@@ -25,5 +25,5 @@ setup(
25
25
  py_modules=['testit', 'testit_python_commons'],
26
26
  packages=find_packages(where='src'),
27
27
  package_dir={'': 'src'},
28
- install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.5']
28
+ install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.5.post570']
29
29
  )
@@ -39,7 +39,7 @@ class SyncStorageRunner:
39
39
  across multiple workers.
40
40
  """
41
41
 
42
- SYNC_STORAGE_VERSION = "v0.1.27"
42
+ SYNC_STORAGE_VERSION = "v0.2.0-tms-5.7"
43
43
  SYNC_STORAGE_REPO_URL = (
44
44
  "https://github.com/testit-tms/sync-storage-public/releases/download/"
45
45
  )
@@ -123,7 +123,12 @@ class HtmlEscapeUtils:
123
123
  # Skip private/protected attributes and methods
124
124
  if attr_name.startswith('_') or callable(getattr(obj, attr_name, None)):
125
125
  continue
126
- if attr_name.startswith("external_id") or attr_name.startswith("externalId"):
126
+ if (
127
+ attr_name.startswith("external_id")
128
+ or attr_name.startswith("externalId")
129
+ or attr_name.startswith("auto_test_external_id")
130
+ or attr_name.startswith("autoTestExternalId")
131
+ ):
127
132
  continue
128
133
 
129
134
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 4.1.0
3
+ Version: 4.1.0.post570
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
19
  Requires-Dist: tomli
20
- Requires-Dist: testit-api-client==7.5.5
20
+ Requires-Dist: testit-api-client==7.5.5.post570
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -0,0 +1,3 @@
1
+ pluggy
2
+ tomli
3
+ testit-api-client==7.5.5.post570
@@ -10,6 +10,15 @@ class SampleData:
10
10
  self.tags = ["<tag>", "normal_tag"]
11
11
 
12
12
 
13
+ class SampleExternalIdsData:
14
+ def __init__(self):
15
+ self.external_id = "<test>"
16
+ self.externalId = "<test-camel>"
17
+ self.auto_test_external_id = "<auto-test>"
18
+ self.autoTestExternalId = "<auto-test-camel>"
19
+ self.description = "<script>alert('xss')</script>"
20
+
21
+
13
22
  class TestHtmlEscapeUtils(unittest.TestCase):
14
23
 
15
24
  def test_escape_html_tags_basic(self):
@@ -70,6 +79,17 @@ class TestHtmlEscapeUtils(unittest.TestCase):
70
79
  self.assertEqual(result.tags[0], "&lt;tag&gt;") # Escaped
71
80
  self.assertEqual(result.tags[1], "normal_tag") # No escaping needed
72
81
 
82
+ def test_escape_html_in_object_skips_external_id_fields(self):
83
+ """Test that externalId fields are not escaped"""
84
+ test_obj = SampleExternalIdsData()
85
+ result = HtmlEscapeUtils.escape_html_in_object(test_obj)
86
+
87
+ self.assertEqual(result.external_id, "<test>")
88
+ self.assertEqual(result.externalId, "<test-camel>")
89
+ self.assertEqual(result.auto_test_external_id, "<auto-test>")
90
+ self.assertEqual(result.autoTestExternalId, "<auto-test-camel>")
91
+ self.assertEqual(result.description, "&lt;script&gt;alert('xss')&lt;/script&gt;")
92
+
73
93
  def test_escape_html_in_object_list(self):
74
94
  """Test HTML escaping in list of objects"""
75
95
  test_list = [
@@ -1,3 +0,0 @@
1
- pluggy
2
- tomli
3
- testit-api-client==7.5.5