1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-11 02:25:36 +00:00

test(onepassword_info): fix pylint disallowed-name for _ variable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexei Znamensky 2026-05-23 12:56:32 +12:00
parent 7edfbe5562
commit 71786e9b70

View file

@ -90,7 +90,7 @@ def test_get_token_signin(mocker, capfd):
with pytest.raises(SystemExit):
onepassword_info.main()
out, _ = capfd.readouterr()
out, dummy = capfd.readouterr()
result = json.loads(out)
assert not result.get("failed"), result.get("msg")
assert result["onepassword"]["My Item"]["password"] == "secret123"
@ -130,7 +130,7 @@ def test_full_login(mocker, capfd):
with pytest.raises(SystemExit):
onepassword_info.main()
out, _ = capfd.readouterr()
out, dummy = capfd.readouterr()
result = json.loads(out)
assert not result.get("failed"), result.get("msg")
assert result["onepassword"]["My Item"]["password"] == "secret123"