We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fde5708 commit 63ed3e6Copy full SHA for 63ed3e6
1 file changed
pytest_reportportal/config.py
@@ -83,7 +83,7 @@ class AgentConfig:
83
84
def __init__(self, pytest_config: Config) -> None:
85
"""Initialize required attributes."""
86
- self.rp_enabled = to_bool(self.find_option(pytest_config, "rp_enabled", True))
+ self.rp_enabled = to_bool(getattr(pytest_config.option, "rp_enabled", True))
87
self.rp_rerun = pytest_config.option.rp_rerun or pytest_config.getini("rp_rerun")
88
self.rp_endpoint = getenv("RP_ENDPOINT") or self.find_option(pytest_config, "rp_endpoint")
89
self.rp_hierarchy_code = to_bool(self.find_option(pytest_config, "rp_hierarchy_code"))
0 commit comments