-
Hi!
How can I start, for example, only 'empty_pass' and 'wrong_user' cases?
If I use
or
or
How can I achieve my purpose? |
Beta Was this translation helpful? Give feedback.
Answered by
bluetech
Feb 15, 2021
Replies: 1 comment 1 reply
-
I used this file import pytest
class TestLogin:
@pytest.mark.parametrize(
'creds',
[('foo', ''), ('foo', 'invalid_pass'), ('invalid_user', 'bar')],
ids=['empty_pass', 'wrong_pass', 'wrong_user'],
)
def test_login_fail(self, creds) -> None:
pass and your last attempt works for me:
Perhaps try again? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LuriaA
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used this file
and your last attempt works for me: