aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-09-25 22:25:41 +0200
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-09-25 22:25:41 +0200
commit6338388cea254ba4c6090eb17a8942a13b7a2b1c (patch)
tree57d885309712f50bc63aeed8f2ef639ba405ca59 /tests
parentUpgrade nvm on travis (diff)
downloadpaper2remarkable-6338388cea254ba4c6090eb17a8942a13b7a2b1c.tar.gz
paper2remarkable-6338388cea254ba4c6090eb17a8942a13b7a2b1c.zip
Clean up readability providers
This reorganizes the code a bit to ensure we only pull the HTML page once, and use the same readability provider for both the informer and the converter.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_providers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_providers.py b/tests/test_providers.py
index ca6c1ae..479fb84 100644
--- a/tests/test_providers.py
+++ b/tests/test_providers.py
@@ -255,7 +255,10 @@ class TestProviders(unittest.TestCase):
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"
+ #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