✨ Suppression de la partie légal
This commit is contained in:
1 parent
0c5189d9ca
commit
d0a95adeb9
36 files changed
+73
-572
No files matched your search
@@ -7,7 +7,7 @@ from scalper.cleaner import clean_chapter, detect_language
|
||||
class TestCleaner(unittest.TestCase):
|
||||
def setUp(self):
|
||||
raw = (resources.files("scalper") / "data" / "demo" / "chapter-1.html").read_text(encoding="utf-8")
|
||||
self.chapter = clean_chapter(raw, {"source": "demo", "license": "fixture"})
|
||||
self.chapter = clean_chapter(raw, {"source": "demo"})
|
||||
|
||||
def test_boilerplate_removed(self):
|
||||
text = self.chapter.full_text().lower()
|
||||
|
||||
Reference in new issue
Block a user