1111
1212@pytest .mark .smoke
1313def test_help_page_for_non_aliased_actions ():
14- process = exec_test_command (["linode-cli" , "linodes" , "list" , "--help" ])
15- output = process .stdout .decode ()
14+ output = exec_test_command (["linode-cli" , "linodes" , "list" , "--help" ])
1615 wrapped_output = textwrap .fill (output , width = 180 ).replace ("\n " , "" )
1716
1817 assert contains_at_least_one_of (
@@ -22,8 +21,8 @@ def test_help_page_for_non_aliased_actions():
2221 assert contains_at_least_one_of (
2322 wrapped_output ,
2423 [
25- "API Documentation: https://techdocs.akamai.com/linode-api/reference/get-linode " ,
26- "API Documentation: https://techdocs.akamai.com/linode-api/reference/get-linode-instances " ,
24+ "API Documentation:" ,
25+ "https://techdocs.akamai.com/linode-api/reference/" ,
2726 ],
2827 )
2928
@@ -33,8 +32,7 @@ def test_help_page_for_non_aliased_actions():
3332
3433@pytest .mark .smoke
3534def test_help_page_for_aliased_actions ():
36- process = exec_test_command (["linode-cli" , "linodes" , "ls" , "--help" ])
37- output = process .stdout .decode ()
35+ output = exec_test_command (["linode-cli" , "linodes" , "ls" , "--help" ])
3836 wrapped_output = textwrap .fill (output , width = 180 ).replace ("\n " , "" )
3937
4038 assert contains_at_least_one_of (
@@ -44,8 +42,8 @@ def test_help_page_for_aliased_actions():
4442 assert contains_at_least_one_of (
4543 wrapped_output ,
4644 [
47- "API Documentation: https://techdocs.akamai.com/linode-api/reference/get-linode " ,
48- "API Documentation: https://techdocs.akamai.com/linode-api/reference/get-linode-instances " ,
45+ "API Documentation:" ,
46+ "https://techdocs.akamai.com/linode-api/reference/" ,
4947 ],
5048 )
5149
@@ -72,7 +70,7 @@ def test_debug_output_contains_request_url(monkeypatch: pytest.MonkeyPatch):
7270 "12345" ,
7371 "--debug" ,
7472 ]
75- ). stderr . decode ()
73+ )
7674 wrapped_output = textwrap .fill (output , width = 180 ).replace ("\n " , "" )
7775
7876 assert (
0 commit comments