testit-python-commons 3.4.1__tar.gz → 3.5.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 (40) hide show
  1. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/PKG-INFO +3 -3
  2. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/setup.py +4 -2
  3. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/client/api_client.py +5 -5
  4. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/client/converter.py +14 -14
  5. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons.egg-info/PKG-INFO +3 -3
  6. testit_python_commons-3.5.1/src/testit_python_commons.egg-info/requires.txt +2 -0
  7. testit_python_commons-3.4.1/src/testit_python_commons.egg-info/requires.txt +0 -2
  8. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/README.md +0 -0
  9. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/setup.cfg +0 -0
  10. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit.py +0 -0
  11. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/__init__.py +0 -0
  12. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/app_properties.py +0 -0
  13. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/client/__init__.py +0 -0
  14. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/client/client_configuration.py +0 -0
  15. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/decorators.py +0 -0
  16. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/dynamic_methods.py +0 -0
  17. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/__init__.py +0 -0
  18. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/adapter_mode.py +0 -0
  19. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/fixture.py +0 -0
  20. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/link.py +0 -0
  21. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/link_type.py +0 -0
  22. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/outcome_type.py +0 -0
  23. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/step_result.py +0 -0
  24. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/test_result.py +0 -0
  25. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  26. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/__init__.py +0 -0
  27. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/adapter_manager.py +0 -0
  28. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  29. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/fixture_manager.py +0 -0
  30. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/fixture_storage.py +0 -0
  31. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/logger.py +0 -0
  32. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/plugin_manager.py +0 -0
  33. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/retry.py +0 -0
  34. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/step_manager.py +0 -0
  35. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/step_result_storage.py +0 -0
  36. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/services/utils.py +0 -0
  37. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons/step.py +0 -0
  38. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  39. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  40. {testit_python_commons-3.4.1 → testit_python_commons-3.5.1}/src/testit_python_commons.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.4.1
3
+ Version: 3.5.1
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==5.0.0
19
+ Requires-Dist: testit-api-client==6.0.0
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -1,8 +1,10 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
+ VERSION = "3.5.1"
4
+
3
5
  setup(
4
6
  name='testit-python-commons',
5
- version='3.4.1',
7
+ version=VERSION,
6
8
  description='Python commons for Test IT',
7
9
  long_description=open('README.md', "r").read(),
8
10
  long_description_content_type="text/markdown",
@@ -23,5 +25,5 @@ setup(
23
25
  py_modules=['testit', 'testit_python_commons'],
24
26
  packages=find_packages(where='src'),
25
27
  package_dir={'': 'src'},
26
- install_requires=['pluggy', 'testit-api-client==5.0.0']
28
+ install_requires=['pluggy', 'testit-api-client==6.0.0']
27
29
  )
@@ -6,7 +6,7 @@ from datetime import datetime
6
6
  from testit_api_client import ApiClient, Configuration
7
7
  from testit_api_client.api import AttachmentsApi, AutoTestsApi, TestRunsApi, TestResultsApi, WorkItemsApi
8
8
  from testit_api_client.models import (
9
- AutoTestModel,
9
+ AutoTestApiResult,
10
10
  AutoTestPostModel,
11
11
  AutoTestPutModel,
12
12
  AttachmentPutModel,
@@ -66,7 +66,7 @@ class ApiClientWorker:
66
66
  test_run_name
67
67
  )
68
68
 
69
- response = self.__test_run_api.create_empty(test_run_v2_post_short_model=model)
69
+ response = self.__test_run_api.create_empty(create_empty_test_run_api_model=model)
70
70
 
71
71
  return Converter.get_id_from_create_test_run_response(response)
72
72
 
@@ -88,7 +88,7 @@ class ApiClientWorker:
88
88
  self.__config.get_project_id(),
89
89
  test_result.get_external_id())
90
90
 
91
- autotests = self.__autotest_api.api_v2_auto_tests_search_post(autotests_select_model=model)
91
+ autotests = self.__autotest_api.api_v2_auto_tests_search_post(auto_test_search_api_model=model)
92
92
 
93
93
  if autotests:
94
94
  self.__update_test(test_result, autotests[0])
@@ -172,7 +172,7 @@ class ApiClientWorker:
172
172
  def __prepare_to_update_autotest(
173
173
  self,
174
174
  test_result: TestResult,
175
- autotest: AutoTestModel) -> AutoTestPutModel:
175
+ autotest: AutoTestApiResult) -> AutoTestPutModel:
176
176
  logging.debug('Preparing to update the auto test ', test_result.get_external_id())
177
177
 
178
178
  model = Converter.test_result_to_autotest_put_model(
@@ -304,7 +304,7 @@ class ApiClientWorker:
304
304
  logging.debug(f'Autotests were created')
305
305
 
306
306
  @adapter_logger
307
- def __update_test(self, test_result: TestResult, autotest: AutoTestModel):
307
+ def __update_test(self, test_result: TestResult, autotest: AutoTestApiResult):
308
308
  logging.debug(f'Autotest "{test_result.get_autotest_name()}" was found')
309
309
 
310
310
  model = self.__prepare_to_update_autotest(test_result, autotest)
@@ -11,15 +11,15 @@ from testit_api_client.models import (
11
11
  LinkPostModel,
12
12
  LinkPutModel,
13
13
  LinkType,
14
- TestRunV2PostShortModel,
15
- TestRunV2GetModel,
16
- AutotestFilterModel,
17
- SearchAutoTestsQueryIncludesModel,
18
- AutotestsSelectModel,
14
+ CreateEmptyTestRunApiModel,
15
+ TestRunV2ApiResult,
16
+ AutoTestFilterApiModel,
17
+ AutoTestSearchIncludeApiModel,
18
+ AutoTestSearchApiModel,
19
19
  TestResultUpdateV2Request,
20
20
  TestResultResponse,
21
21
  TestResultV2GetModel,
22
- AttachmentModel,
22
+ AttachmentApiResult,
23
23
  AttachmentUpdateRequest
24
24
  )
25
25
 
@@ -34,19 +34,19 @@ class Converter:
34
34
  @classmethod
35
35
  @adapter_logger
36
36
  def test_run_to_test_run_short_model(cls, project_id, name):
37
- return TestRunV2PostShortModel(
37
+ return CreateEmptyTestRunApiModel(
38
38
  project_id=project_id,
39
39
  name=name
40
40
  )
41
41
 
42
42
  @classmethod
43
43
  @adapter_logger
44
- def get_id_from_create_test_run_response(cls, response: TestRunV2GetModel):
44
+ def get_id_from_create_test_run_response(cls, response: TestRunV2ApiResult):
45
45
  return response.id
46
46
 
47
47
  @classmethod
48
48
  @adapter_logger
49
- def get_resolved_autotests_from_get_test_run_response(cls, response: TestRunV2GetModel, configuration: str):
49
+ def get_resolved_autotests_from_get_test_run_response(cls, response: TestRunV2ApiResult, configuration: str):
50
50
  autotests = response.test_results
51
51
 
52
52
  return cls.__get_resolved_autotests(autotests, configuration)
@@ -54,16 +54,16 @@ class Converter:
54
54
  @classmethod
55
55
  @adapter_logger
56
56
  def project_id_and_external_id_to_auto_tests_search_post_request(cls, project_id: str, external_id: str):
57
- autotests_filter = AutotestFilterModel(
57
+ autotests_filter = AutoTestFilterApiModel(
58
58
  project_ids=[project_id],
59
59
  external_ids=[external_id],
60
60
  is_deleted=False)
61
- autotests_includes = SearchAutoTestsQueryIncludesModel(
61
+ autotests_includes = AutoTestSearchIncludeApiModel(
62
62
  include_steps=False,
63
63
  include_links=False,
64
64
  include_labels=False)
65
65
 
66
- return AutotestsSelectModel(filter=autotests_filter, includes=autotests_includes)
66
+ return AutoTestSearchApiModel(filter=autotests_filter, includes=autotests_includes)
67
67
 
68
68
  @staticmethod
69
69
  @adapter_logger
@@ -275,7 +275,7 @@ class Converter:
275
275
  @classmethod
276
276
  @adapter_logger
277
277
  def attachment_models_to_attachment_put_models(
278
- cls, attachments: typing.List[AttachmentModel]) -> typing.List[AttachmentUpdateRequest]:
278
+ cls, attachments: typing.List[AttachmentApiResult]) -> typing.List[AttachmentUpdateRequest]:
279
279
  put_model_attachments = []
280
280
 
281
281
  for attachment in attachments:
@@ -287,7 +287,7 @@ class Converter:
287
287
 
288
288
  @staticmethod
289
289
  @adapter_logger
290
- def attachment_model_to_attachment_put_model(attachment: AttachmentModel) -> AttachmentUpdateRequest:
290
+ def attachment_model_to_attachment_put_model(attachment: AttachmentApiResult) -> AttachmentUpdateRequest:
291
291
  return AttachmentUpdateRequest(id=attachment.id)
292
292
 
293
293
  @classmethod
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.4.1
3
+ Version: 3.5.1
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==5.0.0
19
+ Requires-Dist: testit-api-client==6.0.0
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -0,0 +1,2 @@
1
+ pluggy
2
+ testit-api-client==6.0.0
@@ -1,2 +0,0 @@
1
- pluggy
2
- testit-api-client==5.0.0