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

tests: pass config to constructor instead of configuring after #281

Merged

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Sep 23, 2024

Our tests previously was written in a way what created a blank authenticator object, and then configured it one config at the time. I want to transition away from that, as it makes traitlets verification of config error if any of the incremental configuration steps after the authenticator object is initialized are invalid - even though the final configuration won't be.

By this change, we align better with how users are going to use their authentication class which is typically initialized by jupyterhub itself based on config provided, rather than initialized without provided config and then updated.

@consideRatio consideRatio force-pushed the pr/tests-config-construct branch from 6fdea8e to 4cf07bc Compare September 23, 2024 09:48
@consideRatio consideRatio merged commit 1845e0b into jupyterhub:main Sep 23, 2024
7 checks passed
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.

1 participant