Remove the test class from test_jinja.py
This commit is contained in:
parent
d91400c3be
commit
c3e615dfa3
@ -32,11 +32,7 @@ def _read_file(path):
|
|||||||
raise ValueError("Invalid path {}!".format(path))
|
raise ValueError("Invalid path {}!".format(path))
|
||||||
|
|
||||||
|
|
||||||
class JinjaTests(object):
|
def test_simple_template(monkeypatch):
|
||||||
|
|
||||||
"""Tests for getting template via jinja."""
|
|
||||||
|
|
||||||
def test_simple_template(self, monkeypatch):
|
|
||||||
"""Test with a simple template."""
|
"""Test with a simple template."""
|
||||||
monkeypatch.setattr(
|
monkeypatch.setattr(
|
||||||
'qutebrowser.utils.jinja.utils.read_file',
|
'qutebrowser.utils.jinja.utils.read_file',
|
||||||
@ -47,7 +43,8 @@ class JinjaTests(object):
|
|||||||
data = template.render(var='World') # pylint: disable=no-member
|
data = template.render(var='World') # pylint: disable=no-member
|
||||||
assert data == "Hello World"
|
assert data == "Hello World"
|
||||||
|
|
||||||
def test_utf8(self, monkeypatch):
|
|
||||||
|
def test_utf8(monkeypatch):
|
||||||
"""Test rendering with an UTF8 template.
|
"""Test rendering with an UTF8 template.
|
||||||
|
|
||||||
This was an attempt to get a failing test case for #127 but it seems
|
This was an attempt to get a failing test case for #127 but it seems
|
||||||
|
Loading…
Reference in New Issue
Block a user