From 9b0e86a8e74768c4fe848fb5ce8d754292db4e3e Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 23 Apr 2024 00:37:58 -0400 Subject: New upstream version 8.3.0. --- tests/test_locale.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_locale.py') 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): -- cgit v1.2.3