pytest: Clean up some tools vs pytest breakage in that last commit.

Seems you cannot have two __init__ methods in a class, so change
code to only one one variant.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-02-11 16:18:07 -08:00
parent 98b0078336
commit 06fbba1aad
6 changed files with 35 additions and 54 deletions

View File

@@ -28,15 +28,6 @@ class TestRail_Client:
if command_line_args.testrail_user_id == "NONE":
self.use_testrails = False
def __init__(self, url, id, passwd):
self.user = id
self.password = passwd
base_url = url
if not base_url.endswith('/'):
base_url += '/'
self.__url = base_url + 'index.php?/api/v2/'
self.use_testrails = True
def send_get(self, uri, filepath=None):
"""Issue a GET request (read) against the API.