Elevate --verbose to top-level option (#590)

* Elevate --verbose to be usable for all commands

* Fix tests
This commit is contained in:
Teemu R
2023-12-29 16:04:41 +01:00
committed by GitHub
parent b66347116f
commit 1d5a9c35f4
2 changed files with 25 additions and 13 deletions

View File

@@ -236,8 +236,8 @@ async def test_discover(discovery_mock, mocker):
"foo",
"--password",
"bar",
"discover",
"--verbose",
"discover",
],
)
assert res.exit_code == 0
@@ -255,8 +255,8 @@ async def test_discover_unsupported(unsupported_device_info):
"foo",
"--password",
"bar",
"discover",
"--verbose",
"discover",
],
)
assert res.exit_code == 0
@@ -306,8 +306,8 @@ async def test_discover_auth_failed(discovery_mock, mocker):
"foo",
"--password",
"bar",
"discover",
"--verbose",
"discover",
],
)