Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: don't assume test user is OS user #301

Merged
merged 1 commit into from Mar 8, 2024

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 8, 2024

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 no exist

In particular, JupyterHub 5 test utilities no longer create a test user with the running user's name
@minrk
Copy link
Member Author

minrk commented Mar 8, 2024

Merging since this is small and gets tests passing again

@minrk minrk merged commit f23a984 into jupyterhub:main Mar 8, 2024
8 checks passed
@minrk minrk deleted the batch-test-home branch March 8, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant