testit-python-commons 3.10.10rc1__tar.gz → 3.11.0.post560__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 (51) hide show
  1. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/PKG-INFO +2 -2
  2. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/setup.py +2 -2
  3. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/api_client.py +9 -9
  4. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/converter.py +51 -19
  5. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +16 -16
  6. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/helpers/threads_manager.py +4 -4
  7. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/models/threads_for_create_and_result.py +5 -5
  8. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/models/threads_for_update_and_result.py +5 -5
  9. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/adapter_manager.py +3 -2
  10. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
  11. testit_python_commons-3.11.0.post560/src/testit_python_commons.egg-info/requires.txt +3 -0
  12. testit_python_commons-3.10.10rc1/src/testit_python_commons.egg-info/requires.txt +0 -3
  13. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/README.md +0 -0
  14. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/setup.cfg +0 -0
  15. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit.py +0 -0
  16. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/__init__.py +0 -0
  17. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/app_properties.py +0 -0
  18. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/__init__.py +0 -0
  19. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/client_configuration.py +0 -0
  20. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/helpers/__init__.py +0 -0
  21. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/client/models/__init__.py +0 -0
  22. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/decorators.py +0 -0
  23. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/dynamic_methods.py +0 -0
  24. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/__init__.py +0 -0
  25. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/adapter_mode.py +0 -0
  26. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/fixture.py +0 -0
  27. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/link.py +0 -0
  28. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/link_type.py +0 -0
  29. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/outcome_type.py +0 -0
  30. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/step_result.py +0 -0
  31. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/test_result.py +0 -0
  32. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  33. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/__init__.py +0 -0
  34. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  35. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/fixture_manager.py +0 -0
  36. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/fixture_storage.py +0 -0
  37. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/logger.py +0 -0
  38. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/plugin_manager.py +0 -0
  39. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/retry.py +0 -0
  40. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/step_manager.py +0 -0
  41. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/step_result_storage.py +0 -0
  42. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/services/utils.py +0 -0
  43. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/step.py +0 -0
  44. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/utils/__init__.py +0 -0
  45. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
  46. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  47. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  48. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/src/testit_python_commons.egg-info/top_level.txt +0 -0
  49. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/tests/test_app_properties.py +0 -0
  50. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/tests/test_dynamic_methods.py +0 -0
  51. {testit_python_commons-3.10.10rc1 → testit_python_commons-3.11.0.post560}/tests/test_html_escape_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.10.10rc1
3
+ Version: 3.11.0.post560
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.2.0
20
+ Requires-Dist: testit-api-client==7.4.0.post560
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 = "3.10.10rc1"
3
+ VERSION = "3.11.0.post560"
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.2.0']
28
+ install_requires=['pluggy', 'tomli', 'testit-api-client==7.4.0.post560']
29
29
  )
@@ -7,14 +7,14 @@ from testit_api_client.apis import AttachmentsApi, AutoTestsApi, TestRunsApi, Te
7
7
  from testit_api_client.models import (
8
8
  ApiV2TestResultsSearchPostRequest,
9
9
  AutoTestApiResult,
10
- AutoTestPostModel,
11
- AutoTestPutModel,
10
+ AutoTestCreateApiModel,
11
+ AutoTestUpdateApiModel,
12
12
  AttachmentPutModel,
13
13
  TestResultResponse,
14
14
  TestResultShortResponse,
15
15
  TestRunV2ApiResult,
16
16
  LinkAutoTestToWorkItemRequest,
17
- WorkItemIdentifierModel
17
+ AutoTestWorkItemIdentifierApiResult,
18
18
  )
19
19
 
20
20
  from testit_python_commons.client.client_configuration import ClientConfiguration
@@ -247,7 +247,7 @@ class ApiClientWorker:
247
247
  @adapter_logger
248
248
  def __prepare_list_of_work_item_uuids(
249
249
  self,
250
- linked_work_items: List[WorkItemIdentifierModel],
250
+ linked_work_items: List[AutoTestWorkItemIdentifierApiResult],
251
251
  work_item_ids: List[str]) -> List[str]:
252
252
  work_item_uuids = []
253
253
 
@@ -287,7 +287,7 @@ class ApiClientWorker:
287
287
 
288
288
  @adapter_logger
289
289
  @retry
290
- def __get_work_items_linked_to_autotest(self, autotest_global_id: str) -> List[WorkItemIdentifierModel]:
290
+ def __get_work_items_linked_to_autotest(self, autotest_global_id: str) -> List[AutoTestWorkItemIdentifierApiResult]:
291
291
  return self.__autotest_api.get_work_items_linked_to_auto_test(id=autotest_global_id)
292
292
 
293
293
  @adapter_logger
@@ -329,10 +329,10 @@ class ApiClientWorker:
329
329
 
330
330
  @adapter_logger
331
331
  @retry
332
- def __create_tests(self, autotests_for_create: List[AutoTestPostModel]) -> None:
332
+ def __create_tests(self, autotests_for_create: List[AutoTestCreateApiModel]) -> None:
333
333
  logging.debug(f'Creating autotests: "{autotests_for_create}')
334
334
 
335
- self.__autotest_api.create_multiple(auto_test_post_model=autotests_for_create)
335
+ self.__autotest_api.create_multiple(auto_test_create_api_model=autotests_for_create)
336
336
 
337
337
  logging.debug(f'Autotests were created')
338
338
 
@@ -352,10 +352,10 @@ class ApiClientWorker:
352
352
 
353
353
  @adapter_logger
354
354
  @retry
355
- def __update_tests(self, autotests_for_update: List[AutoTestPutModel]) -> None:
355
+ def __update_tests(self, autotests_for_update: List[AutoTestUpdateApiModel]) -> None:
356
356
  logging.debug(f'Updating autotests: {autotests_for_update}')
357
357
 
358
- self.__autotest_api.update_multiple(auto_test_put_model=autotests_for_update)
358
+ self.__autotest_api.update_multiple(auto_test_update_api_model=autotests_for_update)
359
359
 
360
360
  logging.debug(f'Autotests were updated')
361
361
 
@@ -8,13 +8,14 @@ from testit_api_client.models import (
8
8
  AutoTestStepResultUpdateRequest,
9
9
  CreateAutoTestRequest,
10
10
  UpdateAutoTestRequest,
11
- AutoTestPostModel,
12
- AutoTestPutModel,
11
+ AutoTestCreateApiModel,
12
+ AutoTestUpdateApiModel,
13
13
  AutoTestResultsForTestRunModel,
14
- AutoTestStepModel,
14
+ AutoTestStepApiModel,
15
15
  AvailableTestResultOutcome,
16
16
  LinkPostModel,
17
- LinkPutModel,
17
+ LinkCreateApiModel,
18
+ LinkUpdateApiModel,
18
19
  LinkType,
19
20
  CreateEmptyRequest,
20
21
  TestRunV2ApiResult,
@@ -140,8 +141,8 @@ class Converter:
140
141
  def test_result_to_autotest_post_model(
141
142
  cls,
142
143
  test_result: TestResult,
143
- project_id: str) -> AutoTestPostModel:
144
- return AutoTestPostModel(
144
+ project_id: str) -> AutoTestCreateApiModel:
145
+ return AutoTestCreateApiModel(
145
146
  external_id=test_result.get_external_id(),
146
147
  project_id=project_id,
147
148
  name=test_result.get_autotest_name(),
@@ -155,7 +156,7 @@ class Converter:
155
156
  classname=test_result.get_classname(),
156
157
  title=test_result.get_title(),
157
158
  description=test_result.get_description(),
158
- links=cls.links_to_links_post_model(test_result.get_links()),
159
+ links=cls.links_to_links_create_api_model(test_result.get_links()),
159
160
  labels=test_result.get_labels(),
160
161
  should_create_work_item=test_result.get_automatic_creation_test_cases(),
161
162
  external_key=test_result.get_external_key()
@@ -181,7 +182,7 @@ class Converter:
181
182
  classname=test_result.get_classname(),
182
183
  title=test_result.get_title(),
183
184
  description=test_result.get_description(),
184
- links=cls.links_to_links_post_model(test_result.get_links()),
185
+ links=cls.links_to_links_create_api_model(test_result.get_links()),
185
186
  labels=test_result.get_labels(),
186
187
  should_create_work_item=test_result.get_automatic_creation_test_cases(),
187
188
  external_key=test_result.get_external_key()
@@ -192,9 +193,9 @@ class Converter:
192
193
  def test_result_to_autotest_put_model(
193
194
  cls,
194
195
  test_result: TestResult,
195
- project_id: str) -> AutoTestPutModel:
196
+ project_id: str) -> AutoTestUpdateApiModel:
196
197
  if test_result.get_outcome() == 'Passed':
197
- return AutoTestPutModel(
198
+ return AutoTestUpdateApiModel(
198
199
  external_id=test_result.get_external_id(),
199
200
  project_id=project_id,
200
201
  name=test_result.get_autotest_name(),
@@ -213,7 +214,7 @@ class Converter:
213
214
  external_key=test_result.get_external_key()
214
215
  )
215
216
  else:
216
- return AutoTestPutModel(
217
+ return AutoTestUpdateApiModel(
217
218
  external_id=test_result.get_external_id(),
218
219
  project_id=project_id,
219
220
  name=test_result.get_autotest_name(),
@@ -361,9 +362,9 @@ class Converter:
361
362
 
362
363
  @staticmethod
363
364
  @adapter_logger
364
- def link_to_link_put_model(link: Link) -> LinkPutModel:
365
+ def link_to_link_create_api_model(link: Link) -> LinkCreateApiModel:
365
366
  if link.get_link_type():
366
- return LinkPutModel(
367
+ return LinkCreateApiModel(
367
368
  url=link.get_url(),
368
369
  title=link.get_title(),
369
370
  type=LinkType(link.get_link_type()),
@@ -371,7 +372,26 @@ class Converter:
371
372
  has_info=True,
372
373
  )
373
374
  else:
374
- return LinkPutModel(
375
+ return LinkCreateApiModel(
376
+ url=link.get_url(),
377
+ title=link.get_title(),
378
+ description=link.get_description(),
379
+ has_info=True,
380
+ )
381
+
382
+ @staticmethod
383
+ @adapter_logger
384
+ def link_to_link_put_model(link: Link) -> LinkUpdateApiModel:
385
+ if link.get_link_type():
386
+ return LinkUpdateApiModel(
387
+ url=link.get_url(),
388
+ title=link.get_title(),
389
+ type=LinkType(link.get_link_type()),
390
+ description=link.get_description(),
391
+ has_info=True,
392
+ )
393
+ else:
394
+ return LinkUpdateApiModel(
375
395
  url=link.get_url(),
376
396
  title=link.get_title(),
377
397
  description=link.get_description(),
@@ -392,7 +412,19 @@ class Converter:
392
412
 
393
413
  @classmethod
394
414
  @adapter_logger
395
- def links_to_links_put_model(cls, links: List[Link]) -> List[LinkPutModel]:
415
+ def links_to_links_create_api_model(cls, links: List[Link]) -> List[LinkCreateApiModel]:
416
+ create_api_model_links = []
417
+
418
+ for link in links:
419
+ create_api_model_links.append(
420
+ cls.link_to_link_create_api_model(link)
421
+ )
422
+
423
+ return create_api_model_links
424
+
425
+ @classmethod
426
+ @adapter_logger
427
+ def links_to_links_put_model(cls, links: List[Link]) -> List[LinkUpdateApiModel]:
396
428
  put_model_links = []
397
429
 
398
430
  for link in links:
@@ -423,12 +455,12 @@ class Converter:
423
455
  @classmethod
424
456
  # @adapter_logger
425
457
  def step_results_to_autotest_steps_model(
426
- cls, step_results: List[StepResult]) -> List[AutoTestStepModel]:
458
+ cls, step_results: List[StepResult]) -> List[AutoTestStepApiModel]:
427
459
  autotest_model_steps = []
428
460
 
429
461
  for step_result in step_results:
430
462
  autotest_model_steps.append(
431
- AutoTestStepModel(
463
+ AutoTestStepApiModel(
432
464
  title=step_result.get_title(),
433
465
  description=step_result.get_description(),
434
466
  steps=cls.step_results_to_autotest_steps_model(
@@ -530,7 +562,7 @@ class Converter:
530
562
  cls,
531
563
  test_result: TestResult,
532
564
  project_id: str,
533
- work_item_ids_for_link_with_auto_test: list) -> AutoTestPostModel:
565
+ work_item_ids_for_link_with_auto_test: list) -> AutoTestCreateApiModel:
534
566
  logging.debug('Preparing to create the auto test ' + test_result.get_external_id())
535
567
 
536
568
  model = cls.test_result_to_autotest_post_model(
@@ -566,7 +598,7 @@ class Converter:
566
598
  cls,
567
599
  test_result: TestResult,
568
600
  autotest: AutoTestApiResult,
569
- project_id: str) -> AutoTestPutModel:
601
+ project_id: str) -> AutoTestUpdateApiModel:
570
602
  logging.debug('Preparing to update the auto test ' + test_result.get_external_id())
571
603
 
572
604
  model = cls.test_result_to_autotest_put_model(
@@ -2,11 +2,11 @@ import logging
2
2
 
3
3
  from testit_api_client.apis import AutoTestsApi, TestRunsApi
4
4
  from testit_api_client.models import (
5
- AutoTestPostModel,
6
- AutoTestPutModel,
5
+ AutoTestCreateApiModel,
6
+ AutoTestUpdateApiModel,
7
7
  AutoTestResultsForTestRunModel,
8
8
  LinkAutoTestToWorkItemRequest,
9
- WorkItemIdentifierModel
9
+ AutoTestWorkItemIdentifierApiResult,
10
10
  )
11
11
 
12
12
  from testit_python_commons.client.client_configuration import ClientConfiguration
@@ -40,12 +40,12 @@ class BulkAutotestHelper:
40
40
  @adapter_logger
41
41
  def add_for_create(
42
42
  self,
43
- create_model: AutoTestPostModel,
43
+ create_model: AutoTestCreateApiModel,
44
44
  result_model: AutoTestResultsForTestRunModel):
45
45
  thread_for_create_and_result: ThreadForCreateAndResult = self.__threads_manager.\
46
46
  get_thread_for_create_and_result(create_model.external_id)
47
47
 
48
- thread_for_create: Dict[str, AutoTestPostModel] = thread_for_create_and_result.get_thread_for_create()
48
+ thread_for_create: Dict[str, AutoTestCreateApiModel] = thread_for_create_and_result.get_thread_for_create()
49
49
  thread_for_create[create_model.external_id] = create_model
50
50
 
51
51
  thread_results_for_created_autotests: Dict[str, AutoTestResultsForTestRunModel] = thread_for_create_and_result\
@@ -58,13 +58,13 @@ class BulkAutotestHelper:
58
58
  @adapter_logger
59
59
  def add_for_update(
60
60
  self,
61
- update_model: AutoTestPutModel,
61
+ update_model: AutoTestUpdateApiModel,
62
62
  result_model: AutoTestResultsForTestRunModel,
63
63
  autotest_links_to_wi_for_update: Dict[str, List[str]]):
64
64
  thread_for_update_and_result: ThreadForUpdateAndResult = self.__threads_manager.\
65
65
  get_thread_for_update_and_result(update_model.external_id)
66
66
 
67
- thread_for_update: Dict[str, AutoTestPutModel] = thread_for_update_and_result.get_thread_for_update()
67
+ thread_for_update: Dict[str, AutoTestUpdateApiModel] = thread_for_update_and_result.get_thread_for_update()
68
68
  thread_for_update[update_model.external_id] = update_model
69
69
 
70
70
  thread_results_for_updated_autotests: Dict[str, AutoTestResultsForTestRunModel] = thread_for_update_and_result\
@@ -87,7 +87,7 @@ class BulkAutotestHelper:
87
87
  all_threads_for_create_and_result: ThreadsForCreateAndResult = self.__threads_manager\
88
88
  .get_all_threads_for_create_and_result()
89
89
 
90
- thread_for_create: Dict[str, AutoTestPostModel] = all_threads_for_create_and_result\
90
+ thread_for_create: Dict[str, AutoTestCreateApiModel] = all_threads_for_create_and_result\
91
91
  .get_threads_for_create()
92
92
  autotests_for_create = list(thread_for_create.values())
93
93
 
@@ -106,7 +106,7 @@ class BulkAutotestHelper:
106
106
  all_threads_for_update_and_result: ThreadsForUpdateAndResult = self.__threads_manager\
107
107
  .get_all_threads_for_update_and_result()
108
108
 
109
- thread_for_update: Dict[str, AutoTestPutModel] = all_threads_for_update_and_result\
109
+ thread_for_update: Dict[str, AutoTestUpdateApiModel] = all_threads_for_update_and_result\
110
110
  .get_threads_for_update()
111
111
 
112
112
  autotests_for_update = list(thread_for_update.values())
@@ -131,7 +131,7 @@ class BulkAutotestHelper:
131
131
  @adapter_logger
132
132
  def __bulk_create(
133
133
  self,
134
- thread_for_create: List[AutoTestPostModel],
134
+ thread_for_create: List[AutoTestCreateApiModel],
135
135
  thread_results_for_created_autotests: List[AutoTestResultsForTestRunModel]
136
136
  ):
137
137
  self.__create_tests(thread_for_create)
@@ -140,7 +140,7 @@ class BulkAutotestHelper:
140
140
  @adapter_logger
141
141
  def __bulk_update(
142
142
  self,
143
- thread_for_update: Dict[str, AutoTestPutModel],
143
+ thread_for_update: Dict[str, AutoTestUpdateApiModel],
144
144
  thread_results_for_updated_autotests: List[AutoTestResultsForTestRunModel],
145
145
  thread_for_autotest_links_to_wi_for_update: Dict[str, List[str]]
146
146
  ):
@@ -151,20 +151,20 @@ class BulkAutotestHelper:
151
151
  self.__update_autotest_link_from_work_items(autotest_id, work_item_ids)
152
152
 
153
153
  @adapter_logger
154
- def __create_tests(self, autotests_for_create: List[AutoTestPostModel]):
154
+ def __create_tests(self, autotests_for_create: List[AutoTestCreateApiModel]):
155
155
  logging.debug(f'Creating autotests: "{autotests_for_create}')
156
156
 
157
157
  autotests_for_create = HtmlEscapeUtils.escape_html_in_object(autotests_for_create)
158
- self.__autotests_api.create_multiple(auto_test_post_model=autotests_for_create)
158
+ self.__autotests_api.create_multiple(auto_test_create_api_model=autotests_for_create)
159
159
 
160
160
  logging.debug(f'Autotests were created')
161
161
 
162
162
  @adapter_logger
163
- def __update_tests(self, autotests_for_update: List[AutoTestPutModel]):
163
+ def __update_tests(self, autotests_for_update: List[AutoTestUpdateApiModel]):
164
164
  logging.debug(f'Updating autotests: {autotests_for_update}')
165
165
 
166
166
  autotests_for_update = HtmlEscapeUtils.escape_html_in_object(autotests_for_update)
167
- self.__autotests_api.update_multiple(auto_test_put_model=autotests_for_update)
167
+ self.__autotests_api.update_multiple(auto_test_update_api_model=autotests_for_update)
168
168
 
169
169
  logging.debug(f'Autotests were updated')
170
170
 
@@ -179,7 +179,7 @@ class BulkAutotestHelper:
179
179
 
180
180
  # TODO: delete after fix PUT/api/v2/autoTests
181
181
  @adapter_logger
182
- def __get_work_items_linked_to_autotest(self, autotest_global_id: str) -> List[WorkItemIdentifierModel]:
182
+ def __get_work_items_linked_to_autotest(self, autotest_global_id: str) -> List[AutoTestWorkItemIdentifierApiResult]:
183
183
  return self.__autotests_api.get_work_items_linked_to_auto_test(id=autotest_global_id)
184
184
 
185
185
  # TODO: delete after fix PUT/api/v2/autoTests
@@ -1,6 +1,6 @@
1
1
  from testit_api_client.models import (
2
- AutoTestPostModel,
3
- AutoTestPutModel,
2
+ AutoTestCreateApiModel,
3
+ AutoTestUpdateApiModel,
4
4
  AutoTestResultsForTestRunModel,
5
5
  )
6
6
 
@@ -16,8 +16,8 @@ from typing import Dict, List
16
16
 
17
17
  class ThreadsManager:
18
18
  def __init__(self):
19
- self.__thread_for_create: Dict[str, AutoTestPostModel] = {}
20
- self.__thread_for_update: Dict[str, AutoTestPutModel] = {}
19
+ self.__thread_for_create: Dict[str, AutoTestCreateApiModel] = {}
20
+ self.__thread_for_update: Dict[str, AutoTestUpdateApiModel] = {}
21
21
  self.__threads_results_for_created_autotests: List[Dict[str, AutoTestResultsForTestRunModel]] = []
22
22
  self.__threads_results_for_updated_autotests: List[Dict[str, AutoTestResultsForTestRunModel]] = []
23
23
  self.__thread_for_autotest_links_to_wi_for_update: Dict[str, List[str]] = {}
@@ -1,18 +1,18 @@
1
1
  from typing import Dict, List
2
2
 
3
- from testit_api_client.models import AutoTestPostModel, AutoTestResultsForTestRunModel
3
+ from testit_api_client.models import AutoTestCreateApiModel, AutoTestResultsForTestRunModel
4
4
 
5
5
 
6
6
  class ThreadForCreateAndResult:
7
7
  def __init__(
8
8
  self,
9
- thread_for_create: Dict[str, AutoTestPostModel],
9
+ thread_for_create: Dict[str, AutoTestCreateApiModel],
10
10
  thread_results_for_created_autotests: Dict[str, AutoTestResultsForTestRunModel]
11
11
  ):
12
12
  self.__thread_for_create = thread_for_create
13
13
  self.__thread_results_for_created_autotests = thread_results_for_created_autotests
14
14
 
15
- def get_thread_for_create(self) -> Dict[str, AutoTestPostModel]:
15
+ def get_thread_for_create(self) -> Dict[str, AutoTestCreateApiModel]:
16
16
  return self.__thread_for_create
17
17
 
18
18
  def get_thread_results_for_created_autotests(self) -> Dict[str, AutoTestResultsForTestRunModel]:
@@ -22,13 +22,13 @@ class ThreadForCreateAndResult:
22
22
  class ThreadsForCreateAndResult:
23
23
  def __init__(
24
24
  self,
25
- threads_for_create: Dict[str, AutoTestPostModel],
25
+ threads_for_create: Dict[str, AutoTestCreateApiModel],
26
26
  threads_results_for_created_autotests: List[Dict[str, AutoTestResultsForTestRunModel]]
27
27
  ):
28
28
  self.__threads_for_create = threads_for_create
29
29
  self.__threads_results_for_created_autotests = threads_results_for_created_autotests
30
30
 
31
- def get_threads_for_create(self) -> Dict[str, AutoTestPostModel]:
31
+ def get_threads_for_create(self) -> Dict[str, AutoTestCreateApiModel]:
32
32
  return self.__threads_for_create
33
33
 
34
34
  def get_threads_results_for_created_autotests(self) -> List[Dict[str, AutoTestResultsForTestRunModel]]:
@@ -1,12 +1,12 @@
1
1
  from typing import Dict, List
2
2
 
3
- from testit_api_client.models import AutoTestPutModel, AutoTestResultsForTestRunModel
3
+ from testit_api_client.models import AutoTestUpdateApiModel, AutoTestResultsForTestRunModel
4
4
 
5
5
 
6
6
  class ThreadForUpdateAndResult:
7
7
  def __init__(
8
8
  self,
9
- thread_for_update: Dict[str, AutoTestPutModel],
9
+ thread_for_update: Dict[str, AutoTestUpdateApiModel],
10
10
  thread_results_for_updated_autotests: Dict[str, AutoTestResultsForTestRunModel],
11
11
  thread_for_autotest_links_to_wi_for_update: Dict[str, List[str]]
12
12
  ):
@@ -14,7 +14,7 @@ class ThreadForUpdateAndResult:
14
14
  self.__thread_results_for_updated_autotests = thread_results_for_updated_autotests
15
15
  self.__thread_for_autotest_links_to_wi_for_update = thread_for_autotest_links_to_wi_for_update
16
16
 
17
- def get_thread_for_update(self) -> Dict[str, AutoTestPutModel]:
17
+ def get_thread_for_update(self) -> Dict[str, AutoTestUpdateApiModel]:
18
18
  return self.__thread_for_update
19
19
 
20
20
  def get_thread_results_for_updated_autotests(self) -> Dict[str, AutoTestResultsForTestRunModel]:
@@ -27,7 +27,7 @@ class ThreadForUpdateAndResult:
27
27
  class ThreadsForUpdateAndResult:
28
28
  def __init__(
29
29
  self,
30
- threads_for_update: Dict[str, AutoTestPutModel],
30
+ threads_for_update: Dict[str, AutoTestUpdateApiModel],
31
31
  threads_results_for_updated_autotests: List[Dict[str, AutoTestResultsForTestRunModel]],
32
32
  threads_for_autotest_links_to_wi_for_update: Dict[str, List[str]]
33
33
  ):
@@ -35,7 +35,7 @@ class ThreadsForUpdateAndResult:
35
35
  self.__threads_results_for_updated_autotests = threads_results_for_updated_autotests
36
36
  self.__threads_for_autotest_links_to_wi_for_update = threads_for_autotest_links_to_wi_for_update
37
37
 
38
- def get_threads_for_update(self) -> Dict[str, AutoTestPutModel]:
38
+ def get_threads_for_update(self) -> Dict[str, AutoTestUpdateApiModel]:
39
39
  return self.__threads_for_update
40
40
 
41
41
  def get_threads_results_for_updated_autotests(self) -> List[Dict[str, AutoTestResultsForTestRunModel]]:
@@ -1,5 +1,6 @@
1
1
  import os
2
2
  import uuid
3
+ import logging
3
4
 
4
5
  from testit_python_commons.client.api_client import ApiClientWorker
5
6
  from testit_python_commons.client.client_configuration import ClientConfiguration
@@ -80,8 +81,8 @@ class AdapterManager:
80
81
  test_result_id = self.__api_client.write_test(test_result)
81
82
 
82
83
  if (ext_id is None or test_result_id is None):
83
- logger.warning("test_result got empty external_id or test_result_id")
84
- logger.warning(test_result)
84
+ logging.warning("test_result got empty external_id or test_result_id")
85
+ logging.warning(test_result)
85
86
  return
86
87
 
87
88
  self.__test_result_map[ext_id] = test_result_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.10.10rc1
3
+ Version: 3.11.0.post560
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.2.0
20
+ Requires-Dist: testit-api-client==7.4.0.post560
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.4.0.post560
@@ -1,3 +0,0 @@
1
- pluggy
2
- tomli
3
- testit-api-client==7.2.0