Skip to content

Wrong value of default parameter in report #227

Closed

Description

@maratori

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

This code produces wrong parameters values in report.

@allure.step("abc")
def abc(first_param, default_param=10):
    pass

def test_example():
    abc(1, 2)
  "steps": [
    {
      "name": "abc",
      "status": "passed",
      "parameters": [
        {
          "name": "first_param",
          "value": "1"
        },
        {
          "name": "default_param",
          "value": "10"
        }
      ],

What is the expected behavior?

I expect to see default_param equals 2 instead of 10.

Please tell us about your environment:

Activity

  1. added a commit that references this issue on Apr 10, 2023
    4c75796
  2. added 2 commits that reference this issue on Mar 19, 2024
    a3ec25e
    08145b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuetheme:pytest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions