Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
Add custom fields to list when adding a new case
  • Loading branch information
oldtopos committed Sep 15, 2020
1 parent c8240f6 commit 9adde3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testrail/api.py
Expand Up @@ -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
Expand Down

0 comments on commit 9adde3e

Please sign in to comment.