Skip to content

Commit

Permalink
Allow WPS425 in pytest params
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 20, 2024
1 parent b3cf792 commit a113b2b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/_temporary_private_credential_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,18 @@ def test_credential_get_input(
@pytest.mark.parametrize(
('inputs', 'key', 'expected'),
(
pytest.param({'foo2': 'bar2'}, 'foo2', True, id='key-present'),
pytest.param({'foo3': 'bar3'}, 'baz', False, id='key-missing'),
pytest.param(
{'foo2': 'bar2'},
'foo2',
True, # noqa: WPS425
id='key-present',
),
pytest.param(
{'foo3': 'bar3'},
'baz',
False, # noqa: WPS425
id='key-missing',
),
),
)
def test_credential_has_input(
Expand Down

0 comments on commit a113b2b

Please sign in to comment.