From 27c7a24040da1dde75f4a8b4afc960e445059926 Mon Sep 17 00:00:00 2001 From: John A Novak Date: Tue, 15 Sep 2020 15:48:40 -0700 Subject: [PATCH 1/4] Update setup.py Version bump --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fe852e1..4966a6c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( name='testrail', packages=['testrail'], - version='0.3.13', + version='0.3.14', description='Python library for interacting with TestRail via REST APIs.', author='Travis Pavek', author_email='travis.pavek@gmail.com', From 73976884cddd11f5b3eb0ab230b3645632881ce4 Mon Sep 17 00:00:00 2001 From: John A Novak Date: Tue, 15 Sep 2020 15:49:51 -0700 Subject: [PATCH 2/4] Update run.py Add description setter --- testrail/run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testrail/run.py b/testrail/run.py index f638eb0..5c640ae 100644 --- a/testrail/run.py +++ b/testrail/run.py @@ -85,6 +85,10 @@ def custom_status_count(self): def description(self): return self._content.get('description') + @description.setter + def description( self, text ): + self._content['description'] = text + @property def failed_count(self): return self._content.get('failed_count') From c8240f61d405c15b155ffee5e35c9a00da309516 Mon Sep 17 00:00:00 2001 From: John A Novak Date: Tue, 15 Sep 2020 15:51:11 -0700 Subject: [PATCH 3/4] Update helper.py Add kw to singleresult function invocation --- testrail/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testrail/helper.py b/testrail/helper.py index 09366bd..5d7c4c4 100644 --- a/testrail/helper.py +++ b/testrail/helper.py @@ -51,7 +51,7 @@ def testrail_duration_to_timedelta(duration): def singleresult(func): def func_wrapper(*args, **kw): - items = func(*args) + items = func(*args, **kw) if hasattr(items, '__iter__'): items = list(items) if len(items) > 1: From 9adde3ed29b1400e1ec11cb1eecc2348bd112b1c Mon Sep 17 00:00:00 2001 From: John A Novak Date: Tue, 15 Sep 2020 16:04:55 -0700 Subject: [PATCH 4/4] Update api.py Add custom fields to list when adding a new case --- testrail/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testrail/api.py b/testrail/api.py index 597e4bb..b6d8f4c 100644 --- a/testrail/api.py +++ b/testrail/api.py @@ -289,6 +289,7 @@ def case_with_id(self, case_id, suite_id=None): def add_case(self, case): fields = ['title', 'template_id', 'type_id', 'priority_id', 'estimate', 'milestone_id', 'refs'] + fields.extend(self._custom_field_discover(case)) section_id = case.get('section_id') payload = self._payload_gen(fields, case) #TODO get update cache working for now reset cache