@@ -457,7 +457,7 @@ def test_build_material_theme(tmp_path):
457457 # in German because locale is set to 'de'
458458 index_file = testproject_path / "site/index.html"
459459 contents = index_file .read_text (encoding = "utf8" )
460- assert re .search (r"Letztes Update\:\s[<span class].+ " , contents )
460+ assert re .search (r"Letztes Update" , contents )
461461
462462
463463def test_material_theme_locale (tmp_path ):
@@ -474,7 +474,7 @@ def test_material_theme_locale(tmp_path):
474474 # The date will be in german though
475475 index_file = testproject_path / "site/index.html"
476476 contents = index_file .read_text (encoding = "utf8" )
477- assert re .search (r"Last update\:\s[<span class].+ " , contents )
477+ assert re .search (r"Last update" , contents )
478478
479479
480480def test_material_theme_locale_disabled (tmp_path ):
@@ -491,7 +491,7 @@ def test_material_theme_locale_disabled(tmp_path):
491491 # The date will be in german though
492492 index_file = testproject_path / "site/index.html"
493493 contents = index_file .read_text (encoding = "utf8" )
494- assert re .search (r"Last update\:\s[<span class].+ " , contents ) is None
494+ assert re .search (r"Last update" , contents ) is None
495495
496496
497497def test_material_theme_no_locale (tmp_path ):
@@ -507,7 +507,7 @@ def test_material_theme_no_locale(tmp_path):
507507 # in english because default locale is set to 'en'
508508 index_file = testproject_path / "site/index.html"
509509 contents = index_file .read_text (encoding = "utf8" )
510- assert re .search (r"Last update\:\s[<span class].+ " , contents )
510+ assert re .search (r"Last update" , contents )
511511
512512
513513
0 commit comments