mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
Modify testrail to use global variable for TR URL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user