Skip to content

Commit 888b3c0

Browse files
committed
test: add @allow_on_cloud decorator to multiple component tests in ComponentTests
1 parent 4c72b61 commit 888b3c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/resources/test_component.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from jira.exceptions import JIRAError
4-
from tests.conftest import JiraTestCase, rndstr
4+
from tests.conftest import JiraTestCase, allow_on_cloud, rndstr
55

66

77
class ComponentTests(JiraTestCase):
@@ -10,6 +10,7 @@ def setUp(self):
1010
self.issue_1 = self.test_manager.project_b_issue1
1111
self.issue_2 = self.test_manager.project_b_issue2
1212

13+
@allow_on_cloud
1314
def test_2_create_component(self):
1415
proj = self.jira.project(self.project_b)
1516
name = f"project-{proj}-component-{rndstr()}"
@@ -67,6 +68,7 @@ def test_3_update(self):
6768
self.assertEqual(component.lead.name, self.jira.current_user())
6869
component.delete()
6970

71+
@allow_on_cloud
7072
def test_4_delete(self):
7173
component = self.jira.create_component(
7274
"To be deleted", self.project_b, description="not long for this world"
@@ -75,6 +77,7 @@ def test_4_delete(self):
7577
component.delete()
7678
self.assertRaises(JIRAError, self.jira.component, myid)
7779

80+
@allow_on_cloud
7881
def test_delete_component_by_id(self):
7982
component = self.jira.create_component(
8083
"To be deleted", self.project_b, description="not long for this world"

0 commit comments

Comments
 (0)