Skip to content

Commit

Permalink
fix: an issue with qase-pytest-capture-logs parameter
Browse files Browse the repository at this point in the history
Fixed an issue then `qase-pytest-capture-logs` parameter did set correct value.

Fix #234
  • Loading branch information
gibiw committed Aug 2, 2024
1 parent 68b91d2 commit 2f92e9d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions qase-pytest/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# qase-pytest 6.1.0b3

## What's new

Fixed an issue then `qase-pytest-capture-logs` parameter did set correct value.

# qase-pytest 6.1.0b2

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-pytest/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-pytest"
version = "6.1.0b2"
version = "6.1.0b3"
description = "Qase Pytest Plugin for Qase TestOps and Qase Report"
readme = "README.md"
keywords = ["qase", "pytest", "plugin", "testops", "report", "qase reporting", "test observability"]
Expand Down
6 changes: 3 additions & 3 deletions qase-pytest/src/qase/pytest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def setup_config_manager(config):
config_manager.config.testops.api.set_host(config.option.__dict__[option])

if option == "qase_testops_plan_id" and config.option.__dict__[option] is not None:
config_manager.config.testops.plan.set_id(config.option.__dict__[option])
config_manager.config.testops.plan.set_id(int(config.option.__dict__[option]))

if option == "qase_testops_run_id" and config.option.__dict__[option] is not None:
config_manager.config.testops.run.set_id(config.option.__dict__[option])
config_manager.config.testops.run.set_id(int(config.option.__dict__[option]))

if option == "qase_testops_run_title" and config.option.__dict__[option] is not None:
config_manager.config.testops.run.set_title(config.option.__dict__[option])
Expand All @@ -109,7 +109,7 @@ def setup_config_manager(config):
config_manager.config.testops.batch.set_size(int(config.option.__dict__[option]))

if option == "qase_pytest_capture_logs" and config.option.__dict__[option] is not None:
config_manager.config.pytest.set_capture_logs(config.option.__dict__[option])
config_manager.config.framework.pytest.set_capture_logs(config.option.__dict__[option])

return config_manager

Expand Down
2 changes: 1 addition & 1 deletion qase-pytest/src/qase/pytest/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def addoptions(parser, group):
parser,
group,
"--qase-pytest-capture-logs",
dest="qase-pytest-capture-logs",
dest="qase_pytest_capture_logs",
type="bool",
help="Capture logs from pytest"
)
Expand Down

0 comments on commit 2f92e9d

Please sign in to comment.