Skip to content

Commit

Permalink
Fix debug AttributeError (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaklepikov authored Sep 25, 2023
1 parent d9e9717 commit 0c7de12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testrail_api_reporter/engines/results_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ 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
self.__suite_id = suite_id if self.__check_suite(suite_id=suite_id) else None
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):
"""
Expand Down

0 comments on commit 0c7de12

Please sign in to comment.