mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Fix home directory test
How did I not see this before
This commit is contained in:
@@ -25,7 +25,7 @@ def test_ensure_user():
|
|||||||
# This raises exception if user doesn't exist
|
# This raises exception if user doesn't exist
|
||||||
ent = pwd.getpwnam(username)
|
ent = pwd.getpwnam(username)
|
||||||
# Home directory must also exist
|
# Home directory must also exist
|
||||||
assert os.path.exists(ent.pw_shell)
|
assert os.path.exists(ent.pw_dir)
|
||||||
# Run ensure_user again, should be a noop
|
# Run ensure_user again, should be a noop
|
||||||
user.ensure_user(username)
|
user.ensure_user(username)
|
||||||
# User still exists, after our second ensure_user call
|
# User still exists, after our second ensure_user call
|
||||||
|
|||||||
Reference in New Issue
Block a user