diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-04-04 17:30:41 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-04-04 17:30:41 +0200 |
commit | ac8d2949a2310d36e334c8de6f0ac925e05fcd98 (patch) | |
tree | 109593967ebdaf3c4f74cd84b7782bd81086ee06 | |
parent | ab7a2ee55811c1d25dc482f4d5126eb4d7bbe714 (diff) | |
download | qutebrowser-ac8d2949a2310d36e334c8de6f0ac925e05fcd98.tar.gz qutebrowser-ac8d2949a2310d36e334c8de6f0ac925e05fcd98.zip |
Fix qute-lastpass tests
-rw-r--r-- | tests/unit/misc/userscripts/test_qute_lastpass.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/misc/userscripts/test_qute_lastpass.py b/tests/unit/misc/userscripts/test_qute_lastpass.py index 24272a048..ebd9a7591 100644 --- a/tests/unit/misc/userscripts/test_qute_lastpass.py +++ b/tests/unit/misc/userscripts/test_qute_lastpass.py @@ -122,7 +122,7 @@ class TestQuteLastPassComponents: subprocess_mock.assert_called_once_with( ['lpass', 'show', '-x', '-j', '-G', '\\bexample\\.com'], - stdout=ANY, stderr=ANY) + capture_output=True) def test_pass_returns_candidates(self, subprocess_mock): """Test if pass_ returns expected lpass site entry.""" @@ -263,7 +263,7 @@ class TestQuteLastPassMain: subprocess_mock.assert_has_calls([ call(['lpass', 'show', '-x', '-j', '-G', '\\bwww\\.example\\.com'], - stdout=ANY, stderr=ANY), + capture_output=True), call(['rofi', '-dmenu'], input=b'12345 | www.example.com | https://www.example.com | fake@fake.com\n23456 | Sites/www.example.com | https://www.example.com | john.doe@fake.com', stdout=ANY) @@ -328,13 +328,13 @@ class TestQuteLastPassMain: subprocess_mock.assert_has_calls([ call(['lpass', 'show', '-x', '-j', '-G', '\\bwww\\.example\\.com'], - stdout=ANY, stderr=ANY), + capture_output=True), call(['lpass', 'show', '-x', '-j', '-G', '\\bexample\\.com'], - stdout=ANY, stderr=ANY), + capture_output=True), call(['lpass', 'show', '-x', '-j', '-G', '\\bwwwexample'], - stdout=ANY, stderr=ANY), + capture_output=True), call(['lpass', 'show', '-x', '-j', '-G', '\\bexample'], - stdout=ANY, stderr=ANY), + capture_output=True), call(['rofi', '-dmenu'], input=b'12345 | www.example.com | https://www.example.com | fake@fake.com\n23456 | Sites/www.example.com | https://www.example.com | john.doe@fake.com\n345 | example.com | https://example.com | joe.doe@fake.com\n456 | Sites/example.com | http://example.com | jane.doe@fake.com', stdout=ANY) |