summaryrefslogtreecommitdiff
path: root/tests/test_core.py
Commit message (Collapse)AuthorAgeFilesLines
* Rephrase copyright headers to link to the LICENSE file instead of COPYINGauthorsAarni Koskela2018-02-021-1/+1
| | | | Fixes #398
* Update copyright header years, and include the Babel teamAarni Koskela2018-02-021-1/+1
|
* cldr: use CLDR 31.0.1 (and fix test changes); see below!cldr-30Aarni Koskela2018-01-171-1/+2
| | | | | | | | | | | | | | | | | | | | CLDR 31.0 separated the GMT and UTC time zones, so formatting of that time zone has changed. Most notably, "UTC" replaces "+0000" when formatting the timezone. This could break code that expects +0000. A subset (the parts supported by Babel) of the migration guide from http://cldr.unicode.org/index/downloads/cldr-31: * The locales in the language-territory population tables have been changed to be the canonical format, dropping the script where it is the default. So "ku_Latn" changes to "ku". * Plural rules: The Portuguese plural rules have changed so that all (and only) integers and decimal fractions < 2 are singular. * Timezones: The GMT timezone has been split from the UTC timezone. * Timezones: New timezone bcp47 codes have been added. * Languages "hr" and "sr" are no longer a short distance apart, for political reasons. * The primary names for CZ changed from "Czech Republic" to "Czechia", with the longer name now the alternate.
* parse_pattern now passes original pattern string to NumberPatternJennifer Wang2016-06-031-1/+1
|
* Add flake8 pre-commit hook and apply fixes.Lukas Balaga2016-03-071-4/+2
|
* Apply pre-commit fixes.Lukas Balaga2016-02-271-0/+3
|
* Add support for date-time skeletonsMichael Birtwell2016-01-041-0/+4
| | | | | | | | The skeletons for dates and times are described on http://cldr.unicode.org/translation/date-time-patterns under Additional Date-Time Formats. And are useful when you want to some more control over formatting dates and times but don't want to force all locales to use the same pattern.
* Improve Locale equality and hashing testsAarni Koskela2015-12-291-10/+18
|
* Add __hash__ to Locale.Roy Wellington Ⅳ2015-12-291-0/+5
|
* Parametrize test_compatible_classes_in_global_and_localedata testAarni Koskela2015-12-211-13/+14
|
* numbers: Properly load and expose currency format typesIsaac Jurado2015-09-271-1/+3
| | | | | | | | The type of the currency format (e.g. "standard", "accounting") was not interpreted correctly from the CLDR data. Now there should not be any currency format identified by "None". Fixes https://github.com/mitsuhiko/babel/issues/201
* localedata: Rename to locale-datasils/wheelLasse Schuirmann2015-09-251-7/+7
| | | | | | To fix the ImportError because of the name clash with localedata.py. locale-data is no valid python identifier and thus a nice indicator that this directory actually contains data.
* Added unit tests for that *.dat files have only babel classesJun Omae2015-08-061-0/+26
|
* Fixed import and format_timedelta to handle new time unit patterns in cldr-24.benselme2015-01-091-1/+1
| | | | Fixed tests to account for various minor changes in cldr-24.
* correctly handle 'C.UTF-8' localeAlex Morega2014-01-081-0/+4
| | | | fixes #57
* Fixed territory aliases not working properlyArmin Ronacher2013-07-291-0/+5
|
* Added another testcase for subtag expansion.Armin Ronacher2013-07-291-0/+5
|
* Fixed #37 (likely subtag resolving)Armin Ronacher2013-07-281-0/+5
| | | | | This fixes some locales not loading correctly (like zh_CN) that are defined through simplified rules in the likely-subtag mapping.
* Fixed a bug in the subtag resolvingArmin Ronacher2013-07-241-0/+4
|
* Added basic likely-subtag resolvingArmin Ronacher2013-07-241-0/+6
|
* Some small fixes from #19Armin Ronacher2013-07-061-1/+1
|
* move os_environ fixture to conftest.pyAlex Morega2013-07-061-8/+0
|
* convert unittests to funcs; use os_environ fixtureAlex Morega2013-07-061-56/+29
|
* test isolation for changes to os.environAlex Morega2013-07-061-9/+14
|
* remove test suite factoriesAlex Morega2013-07-061-10/+0
|
* copy babel.core doctests as unit testsAlex Morega2013-07-061-2/+196
|
* move unit tests outside babel packageAlex Morega2013-07-061-0/+88