Skip to content

Commit 56088d0

Browse files
committed
Preparations for release
1 parent 035bead commit 56088d0

File tree

6 files changed

+684
-50
lines changed

6 files changed

+684
-50
lines changed

LICENSE.txt

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

reportportal_client/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .service import ReportPortalService
2+
from .model import (OperationCompletionRS, EntryCreatedRS, StartTestItemRQ,
3+
StartLaunchRQ, SaveLogRQ, FinishTestItemRQ,
4+
FinishExecutionRQ, StartRQ)

reportportal_client/exception.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

reportportal_client/model/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .request import (FinishExecutionRQ, FinishTestItemRQ, SaveLogRQ,
2+
StartLaunchRQ, StartTestItemRQ, StartRQ)
3+
from .response import EntryCreatedRS, OperationCompletionRS

reportportal_client/service.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
import requests
44

5-
from reportportal_client.model.response import (EntryCreatedRS,
6-
OperationCompletionRS)
7-
8-
9-
def print_request(r):
10-
print("\n{0}: {1}\nRequest Body: {2}\nResponse Content: {3}\n".
11-
format(r.request.method, r.request.url, r.request.body, r.content))
5+
from .model import (EntryCreatedRS, OperationCompletionRS)
126

137

148
class ReportPortalService(object):
@@ -30,14 +24,12 @@ def start_launch(self, start_launch_rq):
3024
url = os.path.join(self.base_url, "launch")
3125
r = requests.post(url=url, headers=self.headers,
3226
data=start_launch_rq.data)
33-
# print_request(r)
3427
return EntryCreatedRS(raw=r.text)
3528

3629
def finish_launch(self, launch_id, finish_execution_rq):
3730
url = os.path.join(self.base_url, "launch", launch_id, "finish")
3831
r = requests.put(url=url, headers=self.headers,
3932
data=finish_execution_rq.data)
40-
# print_request(r)
4133
return OperationCompletionRS(raw=r.text)
4234

4335
def start_test_item(self, parent_item_id, start_test_item_rq):
@@ -47,19 +39,16 @@ def start_test_item(self, parent_item_id, start_test_item_rq):
4739
url = os.path.join(self.base_url, "item")
4840
r = requests.post(url=url, headers=self.headers,
4941
data=start_test_item_rq.data)
50-
# print_request(r)
5142
return EntryCreatedRS(raw=r.text)
5243

5344
def finish_test_item(self, item_id, finish_test_item_rq):
5445
url = os.path.join(self.base_url, "item", item_id)
5546
r = requests.put(url=url, headers=self.headers,
5647
data=finish_test_item_rq.data)
57-
# print_request(r)
5848
return OperationCompletionRS(raw=r.text)
5949

6050
def log(self, save_log_rq):
6151
url = os.path.join(self.base_url, "log")
6252
r = requests.post(url=url, headers=self.headers,
6353
data=save_log_rq.data)
64-
# print_request(r)
6554
return EntryCreatedRS(raw=r.text)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name='reportportal-client',
55
packages=find_packages(),
6-
version='0.1.3',
6+
version='2.5.0',
77
description='Python client for ReportPortal',
88
author='Artsiom Tkachou',
99
author_email='[email protected]',
1010
url='https://github.com/epam/ReportPortal-Python-Client',
11-
download_url='https://github.com/epam/ReportPortal-Python-Client/tarball/0.1.3',
11+
download_url='https://github.com/epam/ReportPortal-Python-Client/tarball/2.5.0',
1212
keywords=['testing', 'reporting', 'reportportal'],
1313
classifiers=[],
1414
install_requires=["requests"],

0 commit comments

Comments
 (0)