diff options
author | Aarni Koskela <akx@iki.fi> | 2023-01-20 18:53:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 18:53:47 +0200 |
commit | 2a4b78446f6553957d6181b9baad3ba2ecf4a2cc (patch) | |
tree | e02f6f8f8cc10c2039a63590cad50770d31e1b58 /babel | |
parent | 61be9dc5d6c9ed7d1fb9116ae81a205a5fbee473 (diff) | |
download | babel-2a4b78446f6553957d6181b9baad3ba2ecf4a2cc.tar.gz |
Remove redundant tests for babel.support (#954)
The doctests test the exact same things.
Diffstat (limited to 'babel')
-rw-r--r-- | babel/support.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/babel/support.py b/babel/support.py index aa7d827..c1851cf 100644 --- a/babel/support.py +++ b/babel/support.py @@ -151,6 +151,8 @@ class Format: >>> fmt = Format('en_US') >>> fmt.compact_decimal(123456789) u'123M' + >>> fmt.compact_decimal(1234567, format_type='long', fraction_digits=2) + '1.23 million' """ return format_compact_decimal(number, format_type=format_type, fraction_digits=fraction_digits, @@ -170,6 +172,9 @@ class Format: ) -> str: """Return a number in the given currency formatted for the locale using the compact number format. + + >>> Format('en_US').compact_currency(1234567, "USD", format_type='short', fraction_digits=2) + '$1.23M' """ return format_compact_currency(number, currency, format_type=format_type, fraction_digits=fraction_digits, locale=self.locale) |