Skip to content

Commit ec31cee

Browse files
committed
Add unit test for Repository#latest_pages_build
1 parent f3ad49f commit ec31cee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/unit/test_repos_repo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,9 @@ def test_asset(self):
136136
self.session.get.assert_called_once_with(
137137
url, headers={'Accept': 'application/vnd.github.manifold-preview'}
138138
)
139+
140+
def test_latest_pages_build(self):
141+
"""Test retrieving the most recent pages build."""
142+
url = self.example_data['url'] + '/pages/builds/latest'
143+
self.instance.latest_pages_build()
144+
self.session.get.assert_called_once_with(url)

0 commit comments

Comments
 (0)