55from bundleup .unify import Unify
66from bundleup .unify .chat import Chat
77from bundleup .unify .git import Git
8- from bundleup .unify .pm import PM
8+ from bundleup .unify .ticketing import Ticketing
99
1010
1111class TestUnifyInitialization :
@@ -17,7 +17,7 @@ def test_init_with_valid_params(self, api_key, connection_id):
1717
1818 assert isinstance (unify .chat , Chat )
1919 assert isinstance (unify .git , Git )
20- assert isinstance (unify .pm , PM )
20+ assert isinstance (unify .ticketing , Ticketing )
2121
2222 def test_chat_has_correct_params (self , api_key , connection_id ):
2323 """Test that chat client has correct parameters."""
@@ -33,12 +33,12 @@ def test_git_has_correct_params(self, api_key, connection_id):
3333 assert unify .git ._api_key == api_key
3434 assert unify .git ._connection_id == connection_id
3535
36- def test_pm_has_correct_params (self , api_key , connection_id ):
37- """Test that pm client has correct parameters."""
36+ def test_ticketing_has_correct_params (self , api_key , connection_id ):
37+ """Test that ticketing client has correct parameters."""
3838 unify = Unify (api_key , connection_id )
3939
40- assert unify .pm ._api_key == api_key
41- assert unify .pm ._connection_id == connection_id
40+ assert unify .ticketing ._api_key == api_key
41+ assert unify .ticketing ._connection_id == connection_id
4242
4343
4444class TestChatInitialization :
@@ -100,23 +100,23 @@ def test_has_releases_method(self, api_key, connection_id):
100100 assert callable (git .releases )
101101
102102
103- class TestPMInitialization :
104- """Test PM class initialization."""
103+ class TestTicketingInitialization :
104+ """Test Ticketing class initialization."""
105105
106106 def test_init_with_valid_params (self , api_key , connection_id ):
107107 """Test initialization with valid API key and connection ID."""
108- pm = PM (api_key , connection_id )
108+ ticketing = Ticketing (api_key , connection_id )
109109
110- assert pm ._api_key == api_key
111- assert pm ._connection_id == connection_id
112- assert pm .base_url == "https://unify.bundleup.io"
110+ assert ticketing ._api_key == api_key
111+ assert ticketing ._connection_id == connection_id
112+ assert ticketing .base_url == "https://unify.bundleup.io"
113113
114- def test_has_issues_method (self , api_key , connection_id ):
115- """Test that PM has issues method."""
116- pm = PM (api_key , connection_id )
114+ def test_has_tickets_method (self , api_key , connection_id ):
115+ """Test that Ticketing has tickets method."""
116+ ticketing = Ticketing (api_key , connection_id )
117117
118- assert hasattr (pm , 'issues ' )
119- assert callable (pm . issues )
118+ assert hasattr (ticketing , 'tickets ' )
119+ assert callable (ticketing . tickets )
120120
121121
122122class TestUnifyBaseClass :
@@ -126,11 +126,11 @@ def test_base_url_is_set(self, api_key, connection_id):
126126 """Test that base URL is correctly set."""
127127 chat = Chat (api_key , connection_id )
128128 git = Git (api_key , connection_id )
129- pm = PM (api_key , connection_id )
129+ ticketing = Ticketing (api_key , connection_id )
130130
131131 assert chat .base_url == "https://unify.bundleup.io"
132132 assert git .base_url == "https://unify.bundleup.io"
133- assert pm .base_url == "https://unify.bundleup.io"
133+ assert ticketing .base_url == "https://unify.bundleup.io"
134134
135135
136136class TestUnifyMethodSignatures :
0 commit comments