def setUp(self): super().setUp() self.create_super_user() request_mock_account.reset() request_mock_account.add_mock(self.super_user, is_consultant=False, is_superuser=True)
def setUp(self): super().setUp() self.create_super_user() request_mock_account.reset() request_mock_account.add_mock(self.super_user, is_consultant=False, is_superuser=True) self.event = self.create_mommy_event( user=self.super_user, category_code=settings.EXO_ROLE_CATEGORY_SUMMIT, **{ 'start': timezone.now().date() - timedelta(days=2), 'end': timezone.now().date() - timedelta(days=1) }) self.event.publish_event(self.super_user)
def setUp(self): super().setUp() request_mock_account.reset() self.consultant_user = self.get_user(mock_user=True, is_consultant=True)