File: test_issue_type.py

package info (click to toggle)
python-jira 3.10.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 8,877; sh: 13; makefile: 7; xml: 4
file content (21 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from __future__ import annotations

from jira.resources import IssueType
from tests.conftest import JiraTestCase


class IssueTypeTest(JiraTestCase):
    def setUp(self) -> None:
        super().setUp()

    def test_issue_type(self):
        issue_types = self.test_manager.jira_admin.project_issue_types(
            project=self.project_a
        )
        assert isinstance(issue_types[0], IssueType)

    def test_issue_type_pagination(self):
        issue_types = self.test_manager.jira_admin.project_issue_types(
            project=self.project_a, startAt=50
        )
        assert len(issue_types) == 0