Moving testfile used by test_utils into qutebrowser.utils
This commit is contained in:
parent
6a03089639
commit
3de584f02c
@ -71,8 +71,7 @@ class TestReadFile:
|
|||||||
|
|
||||||
def test_readfile(self):
|
def test_readfile(self):
|
||||||
"""Read a test file."""
|
"""Read a test file."""
|
||||||
directory = os.path.dirname(__file__)
|
content = utils.read_file(os.path.join('utils', 'testfile'))
|
||||||
content = utils.read_file(os.path.join(directory, 'testfile'))
|
|
||||||
assert content.splitlines()[0] == "Hello World!"
|
assert content.splitlines()[0] == "Hello World!"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user