Commit d54cc252 by Chris Jerdonek

The CustomizedTemplate tests no longer depend on the View class.

parent 78ac3e0d
# coding: utf-8 # coding: utf-8
from pystache import View from pystache import CustomizedTemplate
class SayHello(object): class SayHello(object):
...@@ -8,9 +8,9 @@ class SayHello(object): ...@@ -8,9 +8,9 @@ class SayHello(object):
return "World" return "World"
class SampleView(View): class SampleView(CustomizedTemplate):
pass pass
class NonAscii(View): class NonAscii(CustomizedTemplate):
pass pass
...@@ -173,12 +173,11 @@ class LoaderTests(unittest.TestCase, AssertIsMixin): ...@@ -173,12 +173,11 @@ class LoaderTests(unittest.TestCase, AssertIsMixin):
# TODO: migrate these tests into the LoaderTests class. # 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: rename the get_template() tests to test load().
# TODO: condense, reorganize, and rename the tests so that it is # TODO: condense, reorganize, and rename the tests so that it is
# clear whether we have full test coverage (e.g. organized by # clear whether we have full test coverage (e.g. organized by
# CustomizedTemplate attributes or something). # CustomizedTemplate attributes or something).
class ViewTests(unittest.TestCase): class CustomizedTemplateTests(unittest.TestCase):
# TODO: rename this method to _make_loader(). # TODO: rename this method to _make_loader().
def _make_locator(self): def _make_locator(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment