Commit e2aa919ef0fdce67f3ad90ccadcb435e38c95865
Committed by
Gust
1 parent
96ea694c
Exists in
master
and in
4 other branches
Adding widget test
Showing
3 changed files
with
12 additions
and
3 deletions
Show diff stats
colab/widgets/tests.py
@@ -0,0 +1,12 @@ | @@ -0,0 +1,12 @@ | ||
1 | +from django.test import TestCase | ||
2 | + | ||
3 | +from colab.widgets.widget_manager import WidgetManager, Widget | ||
4 | + | ||
5 | +class WidgetManagerTest(TestCase): | ||
6 | + | ||
7 | + def test_add_widgets_to_key_area(self): | ||
8 | + area = 'profile' | ||
9 | + WidgetManager.register_widget(area, Widget()) | ||
10 | + | ||
11 | + self.assertEqual(len(WidgetManager.get_widgets(area)), 1) | ||
12 | + |