Exemple #1
0
    def setUpClass(cls):
        super(TestCaseTeamGuidelines, cls).setUpClass()
        cls.messages_tab = messages_tab.MessagesTab(cls)
        cls.tasks_tab = tasks_tab.TasksTab(cls)
        cls.team_owner = UserFactory.create()

        #CREATE AN OPEN TEAM WITH WORKFLOWS and AUTOTASKS
        cls.team = TeamMemberFactory.create(team__workflow_enabled=True,
                                            user=cls.team_owner).team
        #Turn on Task Autocreation
        WorkflowFactory.create(team=cls.team,
                               autocreate_subtitle=True,
                               autocreate_translate=True,
                               review_allowed=10)
Exemple #2
0
    def turn_on_automatic_tasks(self):
        self.logger.info('Turning on automatic task creation')
        #Turn on task autocreation for the team.
        WorkflowFactory.create(team=self.limited_access_team,
                               autocreate_subtitle=True,
                               autocreate_translate=True,
                               review_allowed=10)

        #Add some preferred languages to the team.
        lang_list = ['en', 'ru', 'pt-br']
        for language in lang_list:
            TeamLangPrefFactory(team=self.limited_access_team,
                                language_code=language,
                                preferred=True)