diff --git a/qase-pytest/src/qase/pytest/plugin.py b/qase-pytest/src/qase/pytest/plugin.py index d2c88e64..d72de0a4 100644 --- a/qase-pytest/src/qase/pytest/plugin.py +++ b/qase-pytest/src/qase/pytest/plugin.py @@ -86,11 +86,12 @@ def pytest_sessionstart(self, session): def pytest_sessionfinish(self, session, exitstatus): if is_xdist_controller(session): - self.reporter.complete_run(exitstatus) QasePytestPlugin.drop_run_id() else: self.reporter.complete_worker() + self.reporter.complete_run(exitstatus) + @pytest.hookimpl(hookwrapper=True) def pytest_runtest_protocol(self, item): self.ignore = True if item.get_closest_marker("qase_ignore") else False diff --git a/qase-python-commons/src/qase/commons/config.py b/qase-python-commons/src/qase/commons/config.py index 22ae2e86..f536e8ca 100644 --- a/qase-python-commons/src/qase/commons/config.py +++ b/qase-python-commons/src/qase/commons/config.py @@ -29,7 +29,7 @@ def get(self, key, default=None, value_type=None): # Use _get_config method to get the value. If None, return default. value = self._get_config(key) if value_type and value_type == bool: - return self.parseBool(value or default) + return self.parseBool(value) return value or default def validate_config(self): diff --git a/qase-python-commons/src/qase/commons/reporters/testops.py b/qase-python-commons/src/qase/commons/reporters/testops.py index fa2f754d..71cb7e8f 100644 --- a/qase-python-commons/src/qase/commons/reporters/testops.py +++ b/qase-python-commons/src/qase/commons/reporters/testops.py @@ -32,7 +32,7 @@ def __init__(self, config: ConfigManager, logger: Logger) -> None: self.project_code = self.config.get('testops.project') self.run_id = int(run_id) if run_id else run_id self.plan_id = int(plan_id) if plan_id else plan_id - self.defect = self.config.get('testops_defect', False, bool) + self.defect = self.config.get('testops.defect', False, bool) self.complete_after_run = self.config.get('testops.run.complete', True, bool) self.environment = None