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

Fixed unit tests for Flask-Babel 3 #549

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Conversation

azmeuk
Copy link
Member

@azmeuk azmeuk commented Jan 17, 2023

Flask-Babel 3.0.0 has been released yesterday. The CHANGELOG indicates that:

  • Babel.locale_selector and Babel.timezone_selector no longer exist. They must be provided
    either when the Babel() object is created or when init_app() is called. This is to support
    having a single Babel object for multiple Flask apps (#107) as well as to simplify settings
    and multi-threaded state.

Those decorators were not used except in unit tests and examples. This PR fixes the unit tests and the CI with flask-babel 3.

@azmeuk azmeuk merged commit 078ffed into pallets-eco:main Jan 17, 2023
@azmeuk azmeuk deleted the babel-3 branch January 17, 2023 19:06
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant