You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Share the test database lifecycle in auth and resource specs #9725
Fourteen specs that run against the embedded test database still open it, close its connection pool and clean up after themselves by hand: the Apple, Google and ORCID sign-in specs, the local and external account provisioning specs, the feedback, Gmail and user config resource specs and the workflow email notifier spec in amber, SiteSettingsSpec, three computing-unit resource specs, and the notebook migration resource spec. The sign-in and provisioning specs also repeat the same user lookup, provider-row query, user cleanup and invite-only switch, and several specs, including the email template and email code specs, build the same request or message in every case.
DatabaseFlatSpec (#9718) already does this setup for the dashboard and Hub specs. Moving these specs onto it, with a small shared base for the sign-in specs, keeps every test's name, inputs and expected values. About 280 lines go away.
It looks like the issue description doesn't quite follow our template yet:
This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
Activity
github-actions commentedon Nov 27, 2026
👋 Thanks for opening this issue, @aglinxinyuan!
It looks like the issue description doesn't quite follow our template yet:
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
test(amber, common): share the test database lifecycle in auth and re…