Skip to content

Commit

Permalink
fix: exclude default parameters
Browse files Browse the repository at this point in the history
Exclude the default parameters that are added by additional libraries and start with "__pytest"
  • Loading branch information
gibiw committed Aug 6, 2024
1 parent 17485e5 commit f6a0d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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.0.4"
version = "6.0.5"
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
2 changes: 2 additions & 0 deletions qase-pytest/src/qase/pytest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ def _set_testops_id(self, item) -> None:
def _set_params(self, item) -> None:
if hasattr(item, 'callspec'):
for key, val in item.callspec.params.items():
if key.startswith("__pytest"):
continue
self.runtime.result.add_param(key, str(val))

def _set_suite(self, item) -> None:
Expand Down

0 comments on commit f6a0d55

Please sign in to comment.