Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
b4e4b036
Commit
b4e4b036
authored
Dec 17, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_50' into development: closing issue #50
parents
1931b7d9
220b3cd8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
pystache/template.py
+3
-0
tests/test_template.py
+22
-0
No files found.
pystache/template.py
View file @
b4e4b036
...
...
@@ -66,6 +66,9 @@ class Template(object):
self
.
template
=
template
if
context
is
None
:
context
=
{}
if
kwargs
:
context
.
update
(
kwargs
)
...
...
tests/test_template.py
0 → 100644
View file @
b4e4b036
# coding: utf-8
"""
Unit tests of template.py.
"""
import
unittest
from
pystache.template
import
Template
class
TemplateTestCase
(
unittest
.
TestCase
):
def
test_init__kwargs_with_no_context
(
self
):
"""
Test passing **kwargs with no context.
"""
# This test checks that the following line raises no exception.
template
=
Template
(
foo
=
"bar"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment