Clear global component.registry before each test.

This commit is contained in:
Emil Stenström 2015-06-14 14:43:43 +02:00
parent a2e829f8af
commit 57286f8389

View file

@ -16,6 +16,10 @@ class SimpleComponent(component.Component):
js = ("script.js",)
class ComponentTemplateTagTest(unittest.TestCase):
def setUp(self):
# NOTE: component.registry is global, so need to clear before each test
component.registry._registry = {}
def test_component_dependencies(self):
component.registry.register(name="test", component=SimpleComponent)