Fix module path in test_mhtml
Also fix docstring for _get_css_imports
This commit is contained in:
parent
2eeace1c2c
commit
b05a0d191d
@ -51,7 +51,9 @@ _CSS_URL_PATTERNS = [re.compile(x) for x in [
|
|||||||
|
|
||||||
def _get_css_imports(data):
|
def _get_css_imports(data):
|
||||||
"""Return all assets that are referenced in the given CSS document.
|
"""Return all assets that are referenced in the given CSS document.
|
||||||
|
|
||||||
The returned URLs are relative to the stylesheet's URL.
|
The returned URLs are relative to the stylesheet's URL.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
data: The content of the stylesheet to scan as string.
|
data: The content of the stylesheet to scan as string.
|
||||||
"""
|
"""
|
||||||
|
@ -5,7 +5,7 @@ import re
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from qutebrowser.misc import mhtml
|
from qutebrowser.browser import mhtml
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def patch_uuid(monkeypatch):
|
def patch_uuid(monkeypatch):
|
||||||
|
Loading…
Reference in New Issue
Block a user