11from __future__ import annotations
22
33from jira .exceptions import JIRAError
4- from tests .conftest import JiraTestCase , rndstr
4+ from tests .conftest import JiraTestCase , allow_on_cloud , rndstr
55
66
77class 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