Skip to content

Commit

Permalink
Finde GrueneType statt Arvo (#342)
Browse files Browse the repository at this point in the history
* Detect GrueneType instead of Arvo

* Update chromium version

* Adapt tests
  • Loading branch information
marians authored Dec 8, 2024
1 parent 15ae749 commit e7217b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.20@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a

# Find an eligible version at https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/
ARG CHROMIUM_VERSION=131.0.6778.85-r0
ARG CHROMIUM_VERSION=131.0.6778.108-r0

RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.20/community" >> /etc/apk/repositories && \
apk --update --no-cache add ca-certificates \
Expand Down
2 changes: 1 addition & 1 deletion KRITERIEN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Wir prüfen Sites nach den folgenden Kriterien:

- `CONTACT_LINK`: Die Site hat einen Link "Kontakt"

- `USE_SPECIFIC_FONTS`: Die Site verwendet die Schriftart Arvo
- `USE_SPECIFIC_FONTS`: Die Site verwendet die Schriftart GrueneType

- `FEEDS`: Die Site verweist auf RSS oder Atom Feeds via `rel=alternate` Link Tag.

Expand Down
2 changes: 1 addition & 1 deletion checks/load_in_browser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_basics(self):

self.assertTrue(result[url]['min_document_width'] < 360)
self.assertEqual(result[url]['cookies'], [])
self.assertEqual(result[url]['logs'], [])
self.assertEqual(len(result[url]['logs']), 1) # one log entry regarding favicon.ico is expected
self.assertEqual(result[url]['font_families'], ['"times new roman"'])


Expand Down
2 changes: 1 addition & 1 deletion checks/url_reachability_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_success(self):
self.assertEqual(result[url]['redirect_history'], [])
self.assertEqual(result[url]['status'], 200)
self.assertIsNone(result[url]['exception'])
self.assertTrue(0 < result[url]['duration'] < 100)
self.assertTrue(0 < result[url]['duration'] < 300)


def test_redirect(self):
Expand Down
2 changes: 1 addition & 1 deletion rating/use_specific_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def rate(self):
continue

fonts = " ".join(self.check_results['load_in_browser'][url]['font_families'])
if 'arvo' in fonts or 'titillium' in fonts:
if 'gruenetype' in fonts:
urls_with_font += 1

if urls_with_font > 0 and urls_without_font == 0:
Expand Down

0 comments on commit e7217b0

Please sign in to comment.