Skip to content

Commit abfc750

Browse files
authored
Fix unit tests
1 parent 22a159a commit abfc750

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_builds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

463463
def 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

480480
def 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

497497
def 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

Comments
 (0)