From b05a0d191de7021c30e1061bdceb1aa95d3d9432 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 24 Sep 2015 22:17:47 +0200 Subject: [PATCH] Fix module path in test_mhtml Also fix docstring for _get_css_imports --- qutebrowser/browser/mhtml.py | 2 ++ tests/unit/browser/test_mhtml.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/mhtml.py b/qutebrowser/browser/mhtml.py index ce909f683..0fac55003 100644 --- a/qutebrowser/browser/mhtml.py +++ b/qutebrowser/browser/mhtml.py @@ -51,7 +51,9 @@ _CSS_URL_PATTERNS = [re.compile(x) for x in [ def _get_css_imports(data): """Return all assets that are referenced in the given CSS document. + The returned URLs are relative to the stylesheet's URL. + Args: data: The content of the stylesheet to scan as string. """ diff --git a/tests/unit/browser/test_mhtml.py b/tests/unit/browser/test_mhtml.py index c3a859488..106cb3fd7 100644 --- a/tests/unit/browser/test_mhtml.py +++ b/tests/unit/browser/test_mhtml.py @@ -5,7 +5,7 @@ import re import pytest -from qutebrowser.misc import mhtml +from qutebrowser.browser import mhtml @pytest.fixture(autouse=True) def patch_uuid(monkeypatch):