-
-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
from tests.conftest import JiraTestCase | ||
from tests.conftest import JiraTestCase, allow_on_cloud | ||
|
||
|
||
@allow_on_cloud | ||
class GroupsTest(JiraTestCase): | ||
def setUp(self) -> None: | ||
JiraTestCase.setUp(self) | ||
self.group_name = ( | ||
"administrators" if self.is_jira_cloud_ci else "jira-administrators" | ||
) | ||
|
||
def test_group(self): | ||
group = self.jira.group("jira-administrators") | ||
self.assertEqual(group.name, "jira-administrators") | ||
group = self.jira.group(self.group_name) | ||
self.assertEqual(group.name, self.group_name) | ||
|
||
def test_groups(self): | ||
groups = self.jira.groups() | ||
self.assertGreater(len(groups), 0) | ||
|
||
def test_groups_for_users(self): | ||
groups = self.jira.groups("jira-administrators") | ||
groups = self.jira.groups(self.group_name) | ||
self.assertGreater(len(groups), 0) |