Modify testrail to use global variable for TR URL

This commit is contained in:
bealler
2020-12-16 14:28:20 -05:00
parent 50fc623617
commit 9d24520d21

View File

@@ -112,7 +112,7 @@ class APIClient:
"Get the project ID using project name"
project_id = None
projects = client.send_get('get_projects')
#pprint(projects)
pprint(projects)
for project in projects:
if project['name']== project_name:
project_id = project['id']
@@ -178,7 +178,7 @@ class APIClient:
{'name': name, 'case_ids': case_ids, 'milestone_id': milestone_id, 'description': description, 'include_all': False})
print("result in post", result)
client: APIClient = APIClient('https://telecominfraproject.testrail.com')
client: APIClient = APIClient(os.getenv('TESTRAIL_URL'))
class APIError(Exception):
pass