Skip to content

Add test for parameterized tests with renamed IDs #21367

@eleanorjboyd

Description

@eleanorjboyd

add a test to confirm this scenario is correct. The IDs displayed for the given tests should be test_adding[test_adding], test_adding[2+V], and test_adding[6s+9]

@pytest.mark.parametrize(
    "actual, expected",
    [("3+2", 5), ("2+4", 6), ("6+9", 16)],
    ids=["test_adding", "2+V", "6s+9"],
)
def test_adding(actual, expected):
    assert eval(actual) == expected

Metadata

Metadata

Assignees

Labels

area-testingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions