Skip to content

Commit 544f639

Browse files
committed
fix
1 parent 8b84001 commit 544f639

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

tests/integration/account/test_account.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ def test_account_setting_view():
212212
"interfaces_for_new_linodes",
213213
]
214214

215-
settings_text = (
216-
exec_test_command(BASE_CMDS + ["settings", "--text", "--delimiter=,"])
217-
.stdout.decode()
218-
.strip()
215+
settings_text = exec_test_command(
216+
BASE_CMDS["account"] + ["settings", "--text", "--delimiter=,"]
219217
)
220218
lines = settings_text.splitlines()
221219
headers = lines[0].split(",")
@@ -227,15 +225,15 @@ def test_account_setting_view():
227225

228226
# Fetch current interfaces setting
229227
settings_json = exec_test_command(
230-
BASE_CMDS + ["settings", "--json"]
231-
).stdout.decode()
228+
BASE_CMDS["account"] + ["settings", "--json"]
229+
)
232230
original_value = json.loads(settings_json)[0]["interfaces_for_new_linodes"]
233231

234232
yield original_value
235233

236234
# Restore original setting after test
237235
exec_test_command(
238-
BASE_CMDS
236+
BASE_CMDS["account"]
239237
+ [
240238
"settings-update",
241239
"--interfaces_for_new_linodes",
@@ -260,7 +258,7 @@ def test_update_interfaces_setting(test_account_setting_view):
260258

261259
# Update the setting
262260
exec_test_command(
263-
BASE_CMDS
261+
BASE_CMDS["account"]
264262
+ [
265263
"settings-update",
266264
"--interfaces_for_new_linodes",
@@ -270,8 +268,8 @@ def test_update_interfaces_setting(test_account_setting_view):
270268

271269
# Verify the setting was updated
272270
updated_json = exec_test_command(
273-
BASE_CMDS + ["settings", "--json"]
274-
).stdout.decode()
271+
BASE_CMDS["account"] + ["settings", "--json"]
272+
)
275273
updated_value = json.loads(updated_json)[0]["interfaces_for_new_linodes"]
276274

277275
assert (

0 commit comments

Comments
 (0)