diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-09-25 22:25:41 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-09-25 22:25:41 +0200 |
| commit | 6338388cea254ba4c6090eb17a8942a13b7a2b1c (patch) | |
| tree | 57d885309712f50bc63aeed8f2ef639ba405ca59 /tests | |
| parent | Upgrade nvm on travis (diff) | |
| download | paper2remarkable-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.py | 5 |
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 |
