testit-cli 2.0.0__tar.gz → 2.1.0__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.
- {testit_cli-2.0.0 → testit_cli-2.1.0}/PKG-INFO +3 -2
- {testit_cli-2.0.0 → testit_cli-2.1.0}/README.md +1 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/setup.py +2 -2
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/apiclient.py +6 -6
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/converter.py +7 -7
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli.egg-info/PKG-INFO +3 -2
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli.egg-info/requires.txt +1 -1
- {testit_cli-2.0.0 → testit_cli-2.1.0}/LICENSE +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/setup.cfg +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/__init__.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/__main__.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/click_commands.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/dir_worker.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/file_worker.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/importer.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/logger.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/models/__init__.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/models/config.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/models/mode.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/models/status.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/models/testcase.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/models/testrun.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/parser.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/service.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/service_factory.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli/validation.py +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli.egg-info/SOURCES.txt +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli.egg-info/dependency_links.txt +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli.egg-info/entry_points.txt +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/src/testit_cli.egg-info/top_level.txt +0 -0
- {testit_cli-2.0.0 → testit_cli-2.1.0}/tests/test_click.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
|
|
5
5
|
Home-page: https://pypi.org/project/testit-cli/
|
|
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
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: testit-api-client==4.
|
|
19
|
+
Requires-Dist: testit-api-client==4.2.0
|
|
20
20
|
Requires-Dist: validators
|
|
21
21
|
Requires-Dist: tqdm
|
|
22
22
|
Requires-Dist: click~=8.0.4
|
|
@@ -39,3 +39,4 @@ You can see more information in [official documentation](https://docs.testit.sof
|
|
|
39
39
|
| 4.5 | 1.2 |
|
|
40
40
|
| 4.6 | 1.5 |
|
|
41
41
|
| 5.0 | 2.0 |
|
|
42
|
+
| 5.2 | 2.1 |
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='testit-cli',
|
|
5
|
-
version='2.
|
|
5
|
+
version='2.1.0',
|
|
6
6
|
description='This tool is the command line wrapper of Test IT allowing you to upload the test results in real time '
|
|
7
7
|
'to Test IT',
|
|
8
8
|
long_description=open('README.md', "r").read(),
|
|
@@ -24,7 +24,7 @@ setup(
|
|
|
24
24
|
py_modules=['testit_cli'],
|
|
25
25
|
packages=find_packages(where='src'),
|
|
26
26
|
package_dir={'': 'src'},
|
|
27
|
-
install_requires=['testit-api-client==4.
|
|
27
|
+
install_requires=['testit-api-client==4.2.0', 'validators', 'tqdm', 'click~=8.0.4'],
|
|
28
28
|
entry_points={
|
|
29
29
|
'console_scripts': [
|
|
30
30
|
'testit = testit_cli.__main__:console_main'
|
|
@@ -6,7 +6,7 @@ import typing
|
|
|
6
6
|
from testit_api_client import ApiClient as TmsClient
|
|
7
7
|
from testit_api_client import Configuration
|
|
8
8
|
from testit_api_client.apis import AttachmentsApi, AutoTestsApi, TestRunsApi
|
|
9
|
-
from testit_api_client.models import AttachmentPutModel,
|
|
9
|
+
from testit_api_client.models import AttachmentPutModel, TestRunV2PostShortModel
|
|
10
10
|
|
|
11
11
|
from .converter import Converter
|
|
12
12
|
from .models.testrun import TestRun
|
|
@@ -31,10 +31,10 @@ class ApiClient:
|
|
|
31
31
|
|
|
32
32
|
def create_test_run(self, project_id: str, name: str) -> TestRun:
|
|
33
33
|
"""Function creates test run and returns test run id."""
|
|
34
|
-
model =
|
|
34
|
+
model = TestRunV2PostShortModel(project_id=project_id, name=name)
|
|
35
35
|
logging.debug(f"Creating test run with model: {model}")
|
|
36
36
|
|
|
37
|
-
test_run = self.__test_run_api.create_empty(
|
|
37
|
+
test_run = self.__test_run_api.create_empty(test_run_v2_post_short_model=model)
|
|
38
38
|
|
|
39
39
|
logging.info(f'Created new testrun (ID: {test_run["id"]})')
|
|
40
40
|
logging.debug(f"Test run created: {test_run}")
|
|
@@ -46,7 +46,7 @@ class ApiClient:
|
|
|
46
46
|
model = Converter.test_run_to_update_empty_request(test_run)
|
|
47
47
|
logging.debug(f"Updating test run with model: {model}")
|
|
48
48
|
|
|
49
|
-
response = self.__test_run_api.update_empty(
|
|
49
|
+
response = self.__test_run_api.update_empty(test_run_v2_put_model=model)
|
|
50
50
|
|
|
51
51
|
logging.info(f'Updated testrun (ID: {test_run.id})')
|
|
52
52
|
logging.debug(f"Test run updated: {response}")
|
|
@@ -86,7 +86,7 @@ class ApiClient:
|
|
|
86
86
|
"""Function creates autotest and returns autotest id."""
|
|
87
87
|
logging.debug(f"Creating autotest {model}")
|
|
88
88
|
|
|
89
|
-
response = self.__autotest_api.create_auto_test(
|
|
89
|
+
response = self.__autotest_api.create_auto_test(auto_test_post_model=model)
|
|
90
90
|
|
|
91
91
|
logging.debug(f"Created autotest {response}")
|
|
92
92
|
|
|
@@ -97,7 +97,7 @@ class ApiClient:
|
|
|
97
97
|
try:
|
|
98
98
|
logging.debug(f"Updating autotest {model}")
|
|
99
99
|
|
|
100
|
-
self.__autotest_api.update_auto_test(
|
|
100
|
+
self.__autotest_api.update_auto_test(auto_test_put_model=model)
|
|
101
101
|
|
|
102
102
|
logging.debug(f'Updated "{model.name}" successfully!')
|
|
103
103
|
except Exception as exc:
|
|
@@ -7,12 +7,12 @@ from testit_api_client.models import (
|
|
|
7
7
|
ApiV2AutoTestsSearchPostRequest,
|
|
8
8
|
AttachmentModel,
|
|
9
9
|
AttachmentPutModel,
|
|
10
|
-
|
|
10
|
+
AutoTestPostModel,
|
|
11
|
+
AutoTestPutModel,
|
|
11
12
|
LinkModel,
|
|
12
13
|
LinkPutModel,
|
|
13
14
|
TestRunV2GetModel,
|
|
14
|
-
|
|
15
|
-
UpdateEmptyRequest
|
|
15
|
+
TestRunV2PutModel
|
|
16
16
|
)
|
|
17
17
|
|
|
18
18
|
from .models.testrun import TestRun
|
|
@@ -34,7 +34,7 @@ class Converter:
|
|
|
34
34
|
|
|
35
35
|
@staticmethod
|
|
36
36
|
def test_result_to_create_autotest_request(result, external_id: str, project_id: str):
|
|
37
|
-
return
|
|
37
|
+
return AutoTestPostModel(
|
|
38
38
|
external_id=external_id,
|
|
39
39
|
project_id=project_id,
|
|
40
40
|
name=result.get_name(),
|
|
@@ -44,7 +44,7 @@ class Converter:
|
|
|
44
44
|
|
|
45
45
|
@staticmethod
|
|
46
46
|
def test_result_to_update_autotest_request(result, external_id: str, project_id: str):
|
|
47
|
-
return
|
|
47
|
+
return AutoTestPutModel(
|
|
48
48
|
external_id=external_id,
|
|
49
49
|
project_id=project_id,
|
|
50
50
|
name=result.get_name(),
|
|
@@ -119,8 +119,8 @@ class Converter:
|
|
|
119
119
|
)
|
|
120
120
|
|
|
121
121
|
@staticmethod
|
|
122
|
-
def test_run_to_update_empty_request(test_run: TestRun) ->
|
|
123
|
-
return
|
|
122
|
+
def test_run_to_update_empty_request(test_run: TestRun) -> TestRunV2PutModel:
|
|
123
|
+
return TestRunV2PutModel(
|
|
124
124
|
id=test_run.id,
|
|
125
125
|
name=test_run.name,
|
|
126
126
|
description=test_run.description,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
|
|
5
5
|
Home-page: https://pypi.org/project/testit-cli/
|
|
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
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: testit-api-client==4.
|
|
19
|
+
Requires-Dist: testit-api-client==4.2.0
|
|
20
20
|
Requires-Dist: validators
|
|
21
21
|
Requires-Dist: tqdm
|
|
22
22
|
Requires-Dist: click~=8.0.4
|
|
@@ -39,3 +39,4 @@ You can see more information in [official documentation](https://docs.testit.sof
|
|
|
39
39
|
| 4.5 | 1.2 |
|
|
40
40
|
| 4.6 | 1.5 |
|
|
41
41
|
| 5.0 | 2.0 |
|
|
42
|
+
| 5.2 | 2.1 |
|
|
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
|
|
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
|