summaryrefslogtreecommitdiff
path: root/pint/testsuite/test_babel.py
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade --py39-plus in all files except _vendorHernan Grecco2023-04-291-3/+3
|
* Add test for better test coverageJules Chéron2022-03-301-6/+16
|
* Run new stable black versionJules Chéron2022-03-301-2/+2
|
* Fix babel format for UnitJules Chéron2021-06-161-0/+7
| | | | | | | | - Add unit test - Update unit.py - Update CHANGES Closes #1085
* Migration of all tests to pytestHernan2021-01-101-80/+79
| | | | | | | | | | | | | | | | | The intento of this large commit is to move away from unittest into pytest. To speed-up migration we made certain choices that might need to be revisted in the future: - use pytest-subtests to replace unittest subtest infrastructure A lot of this might be better using parametrize - While we have removed certain classes and flatten them to functions, some were kept for no particular reason (rewriting the QuantityTestCase base class) - We have created some fixtures but not optimized. Feature optimization (i.e. using global registries for certain tests might speed up testing as it will void constructing the registry over and over)
* blackKeewis2020-03-081-3/+1
|
* Make `__str__` and `__format__` locale awareHernan2020-02-111-2/+33
| | | | | | | | | | | | | | | | | With this commit, all string formatting operations are locale aware >>> ureg.set_fmt_locale('fr_FR') >>> str(accel) '1.3 mètre par seconde²' >>> "%s" % accel '1.3 mètre par seconde²' >>> "{}".format(accel) '1.3 mètre par seconde²' It should not break any code as the default locale value for the Registry is `None` (meaning do not localize). Close #984
* blackKeewis2019-12-231-1/+1
|
* lintersHernan2019-12-211-10/+5
|
* Added testsHernan2019-12-211-1/+31
|
* Remove redundant encoding information (utf8 is the default)Guido Imperiale2019-12-131-2/+0
|
* isortGuido Imperiale2019-12-131-2/+3
|
* blackGuido Imperiale2019-12-131-17/+8
|
* Remove tokenize backportGuido Imperiale2019-12-041-1/+1
|
* Remove 2.7 support from codebaseGuido Imperiale2019-12-031-1/+1
|
* adjusted to cope with upstream babel tipalexbodn@gmail.com2016-08-061-7/+9
|
* another attempt to overcome syntax error with python 3.2 on travisalexbodn@gmail.com2016-03-251-4/+8
|
* another attempt to overcome syntax error with python 3.2 on travisalexbodn@gmail.com2016-03-251-4/+4
|
* changed syntax in test_babel to hopefully overcome error in python 3.2alexbodn@gmail.com2016-03-251-8/+4
|
* added translation of the measuring systems by locale.alexbodn@gmail.com2016-03-251-1/+8
| | | | renamed the babel_units module to babel_names
* properly added new files to git and added testalex bodnaru2016-02-221-0/+30