def setUp(self):
     user_manager.clear()
     self.user_a = User.objects.create(first_name='Veronica', username='******', email='*****@*****.**')
     self.user_b = User.objects.create(first_name='Jonas', username='******', email='*****@*****.**')
     user_manager.add_user(self.user_a.pk)
     user_manager.add_user(self.user_b.pk)
     settings.SWAMP_DRAGON_NOTIFICATION_BACKENDS = [('email', 'swampdragon_notifications.backends.email_notifications.EmailNotification')]
 def setUp(self):
     user_manager.clear()
     self.user_a = User.objects.create(first_name='Veronica',
                                       username='******')
     self.user_b = User.objects.create(first_name='Jonas', username='******')
     user_manager.add_user(self.user_a.pk)
     user_manager.add_user(self.user_b.pk)
 def setUp(self):
     route_handler.register(NotificationRouter)
     backends.backends = [('realtime', RealtimeNotification)]
     user_manager.clear()
     self.user_a = User.objects.create(first_name='Veronica', username='******')
     self.user_b = User.objects.create(first_name='Jonas', username='******')
     self.user_c = User.objects.create(first_name='Benedicte', username='******')
     user_manager.add_user(self.user_a.pk)
     user_manager.add_user(self.user_b.pk)
     user_manager.add_user(self.user_c.pk)
 def setUp(self):
     route_handler.register(NotificationRouter)
     backends.backends = [('realtime', RealtimeNotification)]
     user_manager.clear()
     self.user_a = User.objects.create(first_name='Veronica',
                                       username='******')
     self.user_b = User.objects.create(first_name='Jonas', username='******')
     self.user_c = User.objects.create(first_name='Benedicte',
                                       username='******')
     user_manager.add_user(self.user_a.pk)
     user_manager.add_user(self.user_b.pk)
     user_manager.add_user(self.user_c.pk)
 def setUp(self):
     user_manager.clear()
     self.user_a = User.objects.create(first_name='Veronica',
                                       username='******',
                                       email='*****@*****.**')
     self.user_b = User.objects.create(first_name='Jonas',
                                       username='******',
                                       email='*****@*****.**')
     user_manager.add_user(self.user_a.pk)
     user_manager.add_user(self.user_b.pk)
     settings.SWAMP_DRAGON_NOTIFICATION_BACKENDS = [(
         'email',
         'swampdragon_notifications.backends.email_notifications.EmailNotification'
     )]
Esempio n. 6
0
 def setUp(self):
     user_manager.clear()
     user_manager.add_user(1)
     user_manager.add_user(2)
Esempio n. 7
0
 def test_clear(self):
     user_manager.clear()
     self.assertEqual(user_manager.user_count(), 0)
 def setUp(self):
     user_manager.clear()
     self.user_a = User.objects.create(first_name='Veronica', username='******')
     self.user_b = User.objects.create(first_name='Jonas', username='******')
     user_manager.add_user(self.user_a.pk)
     user_manager.add_user(self.user_b.pk)