Skip to content

Commit

Permalink
test_group allow_on_cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
adehad committed Jul 27, 2021
1 parent 5658b71 commit 28d3b4c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/resources/test_group.py
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)

0 comments on commit 28d3b4c

Please sign in to comment.