From 44a6617184a5f46a942ee68d8852920d0b5ff12f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 9 Apr 2015 06:53:21 +0200 Subject: [PATCH] Add docstring for patch_read_file. --- tests/utils/test_jinja.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils/test_jinja.py b/tests/utils/test_jinja.py index 27d2bdaee..174a44df2 100644 --- a/tests/utils/test_jinja.py +++ b/tests/utils/test_jinja.py @@ -28,8 +28,9 @@ from qutebrowser.utils import jinja @pytest.fixture(autouse=True) def patch_read_file(monkeypatch): + """pytest fixture to patch utils.read_file.""" def _read_file(path): - """Mocked utils.read_file.""" + """A read_file which returns a simple template if the path is right.""" if path == os.path.join('html', 'test.html'): return """Hello {{var}}""" else: