diff options
-rw-r--r-- | pyproject.toml | 1 | ||||
-rw-r--r-- | tests/test_core.py | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pyproject.toml b/pyproject.toml index 37f7fe3..a7915af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ select = [ "E", "F", "I", + "SIM300", ] ignore = [ "C901", # Complexity diff --git a/tests/test_core.py b/tests/test_core.py index f4d253c..cc23455 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -18,15 +18,14 @@ from babel.core import Locale, default_locale def test_locale_provides_access_to_cldr_locale_data(): locale = Locale('en', 'US') - assert u'English (United States)' == locale.display_name - assert u'.' == locale.number_symbols['decimal'] + assert locale.display_name == u'English (United States)' + assert locale.number_symbols['decimal'] == u'.' def test_locale_repr(): assert repr(Locale('en', 'US')) == "Locale('en', territory='US')" - assert ("Locale('de', territory='DE')" == repr(Locale('de', 'DE'))) - assert ("Locale('zh', territory='CN', script='Hans')" == - repr(Locale('zh', 'CN', script='Hans'))) + assert (repr(Locale('de', 'DE')) == "Locale('de', territory='DE')") + assert (repr(Locale('zh', 'CN', script='Hans')) == "Locale('zh', territory='CN', script='Hans')") def test_locale_comparison(): |