Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+16
View File
@@ -79,3 +79,19 @@ class TestIsLowQuality:
def test_copyright_marker(self):
assert is_low_quality("Just a copyright notice at the bottom.") is True
# Regression: bare "cookie"/"copyright" used to be substring markers, so
# legitimate findings that merely discuss them as their subject were
# discarded. They must now be kept.
def test_keeps_finding_about_copyright_law(self):
assert is_low_quality("This article explains the new EU copyright directive reforms.") is False
def test_keeps_finding_about_cookies(self):
assert is_low_quality("A technical guide to how tracking cookies and session cookies work.") is False
def test_keeps_recipe_mentioning_cookies(self):
assert is_low_quality("Recipe: the best chocolate chip cookies you will ever bake.") is False
# Boilerplate is still caught via phrases.
def test_cookie_consent_banner_still_filtered(self):
assert is_low_quality("The page is just a cookie consent banner.") is True