[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2021-09-15 14:57:47 +00:00
parent 891ddbc106
commit 7494214259

View File

@@ -95,7 +95,9 @@ def test_nb_user_change(container):
output == expected_output output == expected_output
), f"Bad owner for the {nb_user} home folder {output}, expected {expected_output}" ), f"Bad owner for the {nb_user} home folder {output}, expected {expected_output}"
LOGGER.info(f"Checking if home folder of {nb_user} contains the hidden '.jupyter' folder with appropriate permissions ...") LOGGER.info(
f"Checking if home folder of {nb_user} contains the hidden '.jupyter' folder with appropriate permissions ..."
)
command = f'stat -c "%F %U %G" /home/{nb_user}/.jupyter' command = f'stat -c "%F %U %G" /home/{nb_user}/.jupyter'
expected_output = f"directory {nb_user} users" expected_output = f"directory {nb_user} users"
cmd = running_container.exec_run(command, workdir=f"/home/{nb_user}") cmd = running_container.exec_run(command, workdir=f"/home/{nb_user}")
@@ -103,7 +105,8 @@ def test_nb_user_change(container):
assert ( assert (
output == expected_output output == expected_output
), f"Hidden folder .jupyter was not copied properly to {nb_user} home folder. stat: {output}, expected {expected_output}" ), f"Hidden folder .jupyter was not copied properly to {nb_user} home folder. stat: {output}, expected {expected_output}"
def test_chown_extra(container): def test_chown_extra(container):
"""Container should change the UID/GID of CHOWN_EXTRA.""" """Container should change the UID/GID of CHOWN_EXTRA."""
c = container.run( c = container.run(