Пример #1
0
    def setUp(self):
        super().setUp()
        self.user = self.create_user("*****@*****.**")
        self.org = self.create_organization(owner=self.user,
                                            name="Rowdy Tiger")
        self.team = self.create_team(organization=self.org,
                                     name="Mariachi Band",
                                     members=[self.user])

        self.project_1 = self.create_project(organization=self.org,
                                             teams=[self.team],
                                             name="Bengal")
        self.project_2 = self.create_project(organization=self.org,
                                             teams=[self.team],
                                             name="Sumatra")
        self.project_3 = self.create_project(organization=self.org,
                                             teams=[self.team],
                                             name="Siberian")

        self.create_environment(name="development", project=self.project_1)
        self.create_environment(name="production", project=self.project_1)
        self.create_environment(name="visible",
                                project=self.project_1,
                                is_hidden=False)
        self.create_environment(name="not visible",
                                project=self.project_1,
                                is_hidden=True)
        self.create_environment(name="dev", project=self.project_2)
        self.create_environment(name="prod", project=self.project_2)

        self.login_as(self.user)
        self.issues_list = IssueListPage(self.browser, self.client)
        self.issue_details = IssueDetailsPage(self.browser, self.client)
 def setUp(self):
     super(IssueDetailsWorkflowTest, self).setUp()
     self.user = self.create_user("*****@*****.**")
     self.org = self.create_organization(owner=self.user, name="Rowdy Tiger")
     self.team = self.create_team(
         organization=self.org, name="Mariachi Band", members=[self.user]
     )
     self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
     self.login_as(self.user)
     self.page = IssueDetailsPage(self.browser, self.client)
Пример #3
0
 def setUp(self):
     super(IssueDetailsTest, self).setUp()
     patcher = patch("django.utils.timezone.now", return_value=now)
     patcher.start()
     self.addCleanup(patcher.stop)
     self.user = self.create_user("*****@*****.**")
     self.org = self.create_organization(owner=self.user, name="Rowdy Tiger")
     self.team = self.create_team(organization=self.org, name="Mariachi Band")
     self.project = self.create_project(organization=self.org, teams=[self.team], name="Bengal")
     self.login_as(self.user)
     self.page = IssueDetailsPage(self.browser, self.client)