def __init__(self, server: str, user: str, password: str, run_id: str, protocol: str, # noqa: E951 results_depth: str, *status_names: str) -> None: """Pre-run modifier initialization. *Args:*\n _server_ - name of TestRail server;\n _user_ - name of TestRail user;\n _password_ - password of TestRail user;\n _run_id_ - ID of the test run;\n _protocol_ - connecting protocol to TestRail server: http or https;\n _results_depth_ - analysis depth of run results;\n _status_names_ - name of test statuses in TestRail. """ self.run_id = run_id self.status_names = status_names self.tr_client = TestRailAPIClient(server, user, password, run_id, protocol) self.results_depth = int(results_depth) if str(results_depth).isdigit() else 0 self._tr_tags_list: Optional[List[str]] = None self._tr_stable_tags_list: Optional[List[str]] = None LOGGER.register_syslog()