Skip to content

Commit b09d887

Browse files
committed
Add unit test for User#organizations
1 parent 9e8c387 commit b09d887

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/unit/test_users.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ def test_keys(self):
9494
headers={}
9595
)
9696

97+
def test_organizations(self):
98+
"""Test the request to retrieve the orgs a user belongs to."""
99+
i = self.instance.organizations()
100+
self.get_next(i)
101+
102+
self.session.get.assert_called_once_with(
103+
url_for('orgs'),
104+
params={'per_page': 100},
105+
headers={}
106+
)
107+
97108
def test_starred_repositories(self):
98109
"""Test the request to retrieve a user's starred repos."""
99110
i = self.instance.starred_repositories()

0 commit comments

Comments
 (0)