Skip to content

Commit 58cde2c

Browse files
committed
Remove rerequest method from CheckRun
1 parent 49815e1 commit 58cde2c

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

src/github3/checks.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -421,17 +421,3 @@ def update(
421421
self._update_attributes(json)
422422
return True
423423
return False
424-
425-
@decorators.requires_app_installation_auth
426-
def rerequest(self):
427-
"""Rerequest the check suite.
428-
429-
:returns:
430-
True if successful, False otherwise
431-
:rtype:
432-
bool
433-
"""
434-
url = self._build_url("rerequest", base_url=self._api)
435-
return self._boolean(
436-
self._post(url, headers=CheckSuite.CUSTOM_HEADERS), 201, 404
437-
)

tests/unit/test_checks.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ def test_update(self):
3737
headers=CheckRun.CUSTOM_HEADERS,
3838
)
3939

40-
def test_rerequest(self):
41-
"""Show that a check run can be rerequested"""
42-
43-
self.instance.rerequest()
44-
self.session.post.assert_called_once_with(
45-
url_for("check-runs/4/rerequest"),
46-
None,
47-
headers=CheckRun.CUSTOM_HEADERS,
48-
)
49-
5040
def test_check_run_types(self):
5141
"""Check that we get the right types"""
5242

@@ -67,11 +57,6 @@ def test_update_requires_auth(self):
6757
with pytest.raises(GitHubException):
6858
self.instance.update(name="newname")
6959

70-
def test_rerequest_requires_auth(self):
71-
"""Show rerequesting a run requires auth"""
72-
with pytest.raises(GitHubException):
73-
self.instance.rerequest()
74-
7560

7661
class TestCheckSuite(UnitAppInstallHelper):
7762
described_class = CheckSuite

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy