Commit 8a98cffe422eb6d8bdf615f98600ef8b91962ce2
1 parent
8c7fed81
Exists in
profile_integration
Adding widget test
Showing
3 changed files
with
12 additions
and
3 deletions
Show diff stats
colab/widgets/tests.py
... | ... | @@ -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 | + | ... | ... |