Esempio n. 1
0
 def test_html_3(self):
     prov = HTML(upload=False, verbose=VERBOSE)
     url = "https://conclave-team.github.io/conclave-site/"
     exp = "Conclave_Case_Study_-_A_Private_and_Secure_Real-Time_Collaborative_Text_Editor.pdf"
     filename = prov.run(url)
     self.assertEqual(exp, os.path.basename(filename))
     # this is a proxy test to check that all images are included
     self.assertEqual(32, len(pdfplumber.open(filename).pages))
Esempio n. 2
0
 def test_html_3(self):
     prov = HTML(upload=False, verbose=VERBOSE)
     url = "https://conclave-team.github.io/conclave-site/"
     # exp = "Conclave_Case_Study_-_A_Private_and_Secure_Real-Time_Collaborative_Text_Editor.pdf"
     # NOTE: Title differs between Readability.JS and readability-lxml, we
     # assume that testing is done with Readability.JS
     exp = "Conclave.pdf"
     filename = prov.run(url)
     self.assertEqual(exp, os.path.basename(filename))
     # this is a proxy test to check that all images are included
     self.assertEqual(32, len(pdfplumber.open(filename).pages))
Esempio n. 3
0
 def test_html_5(self):
     prov = HTML(upload=False, verbose=VERBOSE)
     url = "https://www.spiegel.de/panorama/london-tausende-rechtsextreme-demonstranten-wollen-statuen-schuetzen-a-2a1ed9b9-708a-40dc-a5ff-f312e97a60ca#"
     filename = prov.run(url)
     # this is a proxy test to check that all images are included
     self.assertEqual(4, len(pdfplumber.open(filename).pages))
Esempio n. 4
0
 def test_html_4(self):
     prov = HTML(upload=False, verbose=VERBOSE)
     url = "https://sirupsen.com/2019/"
     filename = prov.run(url)
     # this is a proxy test to check that all images are included
     self.assertEqual(4, len(pdfplumber.open(filename).pages))
Esempio n. 5
0
 def test_html_2(self):
     prov = HTML(upload=False, verbose=VERBOSE)
     url = "https://www.nature.com/articles/d41586-020-00176-4"
     exp = "Isaac_Asimov_Centenary_of_the_Great_Explainer.pdf"
     filename = prov.run(url)
     self.assertEqual(exp, os.path.basename(filename))
Esempio n. 6
0
 def test_html_1(self):
     prov = HTML(upload=False, verbose=VERBOSE)
     url = "https://hbr.org/2019/11/getting-your-team-to-do-more-than-meet-deadlines"
     exp = "Getting_Your_Team_to_Do_More_Than_Meet_Deadlines.pdf"
     filename = prov.run(url)
     self.assertEqual(exp, os.path.basename(filename))