From 0c7de121a426e6e0c728d5bec996fab3c5b7c70f Mon Sep 17 00:00:00 2001 From: Dmitriy Klepikov <66633028+dimaklepikov@users.noreply.github.com> Date: Mon, 25 Sep 2023 14:49:33 +0300 Subject: [PATCH] Fix debug AttributeError (#37) --- testrail_api_reporter/engines/results_reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testrail_api_reporter/engines/results_reporter.py b/testrail_api_reporter/engines/results_reporter.py index a1efdcb..5cbc2f5 100644 --- a/testrail_api_reporter/engines/results_reporter.py +++ b/testrail_api_reporter/engines/results_reporter.py @@ -37,6 +37,7 @@ def __init__( print("\nTestrail Api Reporter init") if url is None or email is None or password is None: raise ValueError("No TestRails credentials are provided!") + self.__debug = debug self.__api = TestRailAPI(url, email, password) self.__xml_report = xml_report if self.__check_report_exists(xml_report=xml_report) else None self.__project_id = project_id if self.__check_project(project_id=project_id) else None @@ -44,7 +45,6 @@ def __init__( self.__at_section = self.__ensure_automation_section() if self.__project_id else None self.__check_section(section_id=self.__at_section) self.__timestamp = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S") - self.__debug = debug def __xml_to_dict(self, filename="junit-report.xml", debug=None): """