summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_pdfjs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/browser/test_pdfjs.py')
-rw-r--r--tests/unit/browser/test_pdfjs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/browser/test_pdfjs.py b/tests/unit/browser/test_pdfjs.py
index 7d7f0ecd4..5ed48e825 100644
--- a/tests/unit/browser/test_pdfjs.py
+++ b/tests/unit/browser/test_pdfjs.py
@@ -236,7 +236,9 @@ def test_should_use_pdfjs_url_pattern(config_stub, url, expected):
def test_get_main_url():
- expected = QtCore.QUrl('qute://pdfjs/web/viewer.html?filename=hello?world.pdf&'
- 'file=&source=http://a.com/hello?world.pdf')
+ expected = QtCore.QUrl(
+ 'qute://pdfjs/web/viewer.html?filename=hello?world.pdf&'
+ 'file=&source=http://a.com/hello?world.pdf'
+ )
original_url = QtCore.QUrl('http://a.com/hello?world.pdf')
assert pdfjs.get_main_url('hello?world.pdf', original_url) == expected