Skip to content

Commit 40eab4d

Browse files
committed
Fix texts for utils (remove context, fix expected values, fix dict typo)
1 parent ea5cc06 commit 40eab4d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

framarama/test_utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def test_evaluate_no_resolver_key_missing(self):
569569
self.assertEqual('', utils.Template.render("{{missing}}"))
570570

571571
def test_evaluate_keys(self):
572-
self.assertEqual('value', utils.Template.render("{{test['test']}}", {
572+
self.assertEqual('value', utils.Template.render("{{test}}", {
573573
'test': 'value'
574574
}))
575575

@@ -587,9 +587,9 @@ def test_evaluate_split(self):
587587
'test': 'this is a test'
588588
}))
589589

590-
def test_valuate_keys(self):
590+
def test_evaluate_keys(self):
591591
self.assertEqual('aceh', utils.Template.render('{{test|keys|join}}', {
592-
'test', {'a':'b', 'c':'d', 'e':'f', 'h':'i'}
592+
'test': {'a':'b', 'c':'d', 'e':'f', 'h':'i'}
593593
}))
594594

595595
def test_evaluate_long(self):
@@ -605,7 +605,6 @@ def test_evaluate_long_quotes(self):
605605
self.assertEqual('\nhello """ world """\n', utils.Template.render(_text))
606606

607607
def test_evaluate_long_html(self):
608-
_context = context.Context()
609608
_text = """
610609
<html>
611610
<body>
@@ -616,7 +615,6 @@ def test_evaluate_long_html(self):
616615
self.assertEqual('\n<html>\n<body>\n <a href="http://github.com/framarama/">framaRAMA</a>\n</body>\n</html>\n', utils.Template.render(_text))
617616

618617
def test_evaluate_long_script(self):
619-
_context = context.Context()
620618
_text = """
621619
<html>
622620
<head>

0 commit comments

Comments
 (0)