From 2c6f224f9527607cdc2e9234498b7858d3c68fd7 Mon Sep 17 00:00:00 2001 From: Vojtech Burian Date: Wed, 10 Jun 2015 09:05:29 +0200 Subject: [PATCH] Adding section id to `get_cases` api call --- shishito/services/testrail_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shishito/services/testrail_api.py b/shishito/services/testrail_api.py index a0be6c9..2eaef7b 100644 --- a/shishito/services/testrail_api.py +++ b/shishito/services/testrail_api.py @@ -64,7 +64,7 @@ def get_all_test_cases(self): :return: list of test-cases (names = strings) """ - test_case_list = self.tr_get('get_cases/{}'.format(self.project_id)) + test_case_list = self.tr_get('get_cases/{}§ion_id={}'.format(self.project_id, self.section_id)) return [{'title': test_case['title'], 'id': test_case['id']} for test_case in test_case_list] def create_test_case(self, title):