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', 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 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: 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')