mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +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"
|
"Get the project ID using project name"
|
||||||
project_id = None
|
project_id = None
|
||||||
projects = client.send_get('get_projects')
|
projects = client.send_get('get_projects')
|
||||||
#pprint(projects)
|
pprint(projects)
|
||||||
for project in projects:
|
for project in projects:
|
||||||
if project['name']== project_name:
|
if project['name']== project_name:
|
||||||
project_id = project['id']
|
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})
|
{'name': name, 'case_ids': case_ids, 'milestone_id': milestone_id, 'description': description, 'include_all': False})
|
||||||
print("result in post", result)
|
print("result in post", result)
|
||||||
|
|
||||||
client: APIClient = APIClient('https://telecominfraproject.testrail.com')
|
client: APIClient = APIClient(os.getenv('TESTRAIL_URL'))
|
||||||
|
|
||||||
class APIError(Exception):
|
class APIError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user