Skip to content

Commit 6eeb9c9

Browse files
add test stubs for new method
1 parent 59fbb5b commit 6eeb9c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ def test_get_gh_client(self, installation):
244244
assert isinstance(client, AsyncGitHubAPI)
245245
assert client.installation_id == installation.installation_id
246246

247+
@pytest.mark.asyncio
248+
async def test_arefresh_from_gh(self): ...
249+
def test_refresh_from_gh(self): ...
250+
251+
def test_refresh_from_gh_invalid_account_type(self, installation):
252+
with pytest.raises(ValueError):
253+
installation.refresh_from_gh("invalid", "test")
254+
247255
@pytest.mark.asyncio
248256
async def test_aget_repos(self, ainstallation):
249257
installation = await ainstallation

0 commit comments

Comments
 (0)