We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a5f39b + a61e4fa commit bf9b93bCopy full SHA for bf9b93b
1 file changed
pytest_reportportal/config.py
@@ -73,7 +73,7 @@ class AgentConfig:
73
def __init__(self, pytest_config: Config) -> None:
74
"""Initialize required attributes."""
75
self.rp_rerun = pytest_config.option.rp_rerun or pytest_config.getini("rp_rerun")
76
- self.rp_endpoint = self.find_option(pytest_config, "rp_endpoint")
+ self.rp_endpoint = getenv("RP_ENDPOINT") or self.find_option(pytest_config, "rp_endpoint")
77
self.rp_hierarchy_code = to_bool(self.find_option(pytest_config, "rp_hierarchy_code"))
78
self.rp_dir_level = int(self.find_option(pytest_config, "rp_hierarchy_dirs_level"))
79
self.rp_hierarchy_dirs = to_bool(self.find_option(pytest_config, "rp_hierarchy_dirs"))
0 commit comments