Test for AppVeyor updated
This commit is contained in:
parent
d7dd1b3507
commit
4fa2f34af4
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
"""Tests for qutebrowser.utils.jinja."""
|
"""Tests for qutebrowser.utils.jinja."""
|
||||||
|
|
||||||
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -59,7 +60,14 @@ def test_resource_url():
|
|||||||
url = QUrl(data)
|
url = QUrl(data)
|
||||||
assert url.isValid()
|
assert url.isValid()
|
||||||
assert url.scheme() == 'file'
|
assert url.scheme() == 'file'
|
||||||
with open(url.path(), 'r', encoding='utf-8') as f:
|
|
||||||
|
path = url.path()
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
path = path.replace("/", os.sep)
|
||||||
|
path = path[-1:]
|
||||||
|
|
||||||
|
with open(path, 'r', encoding='utf-8') as f:
|
||||||
assert f.read().splitlines()[0] == "Hello World!"
|
assert f.read().splitlines()[0] == "Hello World!"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user