Refactor container.exec_run usages

This commit is contained in:
Ayaz Salikhov
2025-03-10 00:49:28 +00:00
parent f2b42fd461
commit 0510a43920
12 changed files with 36 additions and 36 deletions

View File

@@ -47,8 +47,8 @@ def test_nb_user_change(container: TrackedContainer) -> None:
)
command = f'stat -c "%F %U %G" /home/{nb_user}/.jupyter'
expected_output = f"directory {nb_user} users"
cmd = running_container.exec_run(command, workdir=f"/home/{nb_user}")
output = cmd.output.decode().strip("\n")
exec_result = running_container.exec_run(command, workdir=f"/home/{nb_user}")
output = exec_result.output.decode().strip("\n")
assert (
output == expected_output
), f"Hidden folder .jupyter was not copied properly to {nb_user} home folder. stat: {output}, expected {expected_output}"