mock getpwnam to always return result for current user
since test user may well not exist on the system
In particular, JupyterHub 5 test utilities no longer create a test user with the running user's name, which is causing tests to fail, since so far batchspawner tests have assumed that the first user in the database matches getpass.getuser().
mock getpwnam to always return result for current user
since test user may well not exist on the system
In particular, JupyterHub 5 test utilities no longer create a test user with the running user's name, which is causing tests to fail, since so far batchspawner tests have assumed that the first user in the database matches
getpass.getuser()
.