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
d54cc252
Commit
d54cc252
authored
Mar 22, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The CustomizedTemplate tests no longer depend on the View class.
parent
78ac3e0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
tests/data/views.py
+3
-3
tests/test_custom_template.py
+1
-2
No files found.
tests/data/views.py
View file @
d54cc252
# coding: utf-8
from
pystache
import
View
from
pystache
import
CustomizedTemplate
class
SayHello
(
object
):
...
...
@@ -8,9 +8,9 @@ class SayHello(object):
return
"World"
class
SampleView
(
View
):
class
SampleView
(
CustomizedTemplate
):
pass
class
NonAscii
(
View
):
class
NonAscii
(
CustomizedTemplate
):
pass
tests/test_custom_template.py
View file @
d54cc252
...
...
@@ -173,12 +173,11 @@ class LoaderTests(unittest.TestCase, AssertIsMixin):
# TODO: migrate these tests into the LoaderTests class.
# TODO: switch these tests to using the CustomizedTemplate class instead of View.
# TODO: rename the get_template() tests to test load().
# TODO: condense, reorganize, and rename the tests so that it is
# clear whether we have full test coverage (e.g. organized by
# CustomizedTemplate attributes or something).
class
View
Tests
(
unittest
.
TestCase
):
class
CustomizedTemplate
Tests
(
unittest
.
TestCase
):
# TODO: rename this method to _make_loader().
def
_make_locator
(
self
):
...
...
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