Skip to content

Commit

Permalink
Add test for project_statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
kayx23 committed Jan 16, 2022
1 parent af92229 commit c3a380e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/resources/test_project_statuses.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from tests.conftest import JiraTestCase


class ProjectStatusesTests(JiraTestCase):
def test_project_statuses(self):
project_statuses = self.jira.project_statuses(self.project_a)

# project should have at least one status
self.assertGreater(len(project_statuses), 0)

# first project status
project_status = project_statuses[0]
# test statues id
self_status_id = self.jira.status(project_status.id).id
self.assertEqual(self_status_id, project_status.id)
# test statues name
self_status_name = self.jira.status(project_status.name).name
self.assertEqual(self_status_name, project_status.name)

0 comments on commit c3a380e

Please sign in to comment.