diff options
| author | 2024-04-23 00:38:24 -0400 | |
|---|---|---|
| committer | 2024-04-23 00:38:24 -0400 | |
| commit | 0199f695e93782d728bd31857afe54f4df92f351 (patch) | |
| tree | 34e9030a05a89461d222172615c74891fba1e5ef /tests/test_locale.py | |
| parent | 22b8f5dae59e876643e8e3002f72282f3e8608c5 (diff) | |
| parent | 9b0e86a8e74768c4fe848fb5ce8d754292db4e3e (diff) | |
Update upstream source from tag 'upstream/8.3.0'
Update to upstream version '8.3.0'
with Debian dir bc13791b86ab63e4473e92288f1749c55a6ad540
Diffstat (limited to 'tests/test_locale.py')
| -rw-r--r-- | tests/test_locale.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_locale.py b/tests/test_locale.py index eaeb8e1..ab2ddee 100644 --- a/tests/test_locale.py +++ b/tests/test_locale.py @@ -13,7 +13,7 @@ from nikola.utils import ( TESLA_BIRTHDAY = datetime.date(1856, 7, 10) TESLA_BIRTHDAY_DT = datetime.datetime(1856, 7, 10, 12, 34, 56) -DT_EN_US = "July 10, 1856 at 12:34:56 PM UTC" +DT_EN_US = "July 10, 1856, 12:34:56\u202fPM UTC" DT_PL = "10 lipca 1856 12:34:56 UTC" @@ -87,20 +87,20 @@ def test_format_date_timezone(base_config): 2006, 7, 10, 12, 34, 56, tzinfo=dateutil.tz.gettz("America/New_York") ) formatted_date = LocaleBorg().formatted_date("long", tesla_150_birthday_dtz) - assert formatted_date == "July 10, 2006 at 12:34:56 PM -0400" + assert formatted_date == "July 10, 2006, 12:34:56\u202fPM -0400" nodst = datetime.datetime( 2006, 1, 10, 12, 34, 56, tzinfo=dateutil.tz.gettz("America/New_York") ) formatted_date = LocaleBorg().formatted_date("long", nodst) - assert formatted_date == "January 10, 2006 at 12:34:56 PM -0500" + assert formatted_date == "January 10, 2006, 12:34:56\u202fPM -0500" @pytest.mark.parametrize( "english_variant, expected_date", [ pytest.param("en_US", DT_EN_US, id="US"), - pytest.param("en_GB", "10 July 1856 at 12:34:56 UTC", id="GB"), + pytest.param("en_GB", "10 July 1856, 12:34:56 UTC", id="GB"), ], ) def test_format_date_locale_variants(english_variant, expected_date): |
