Skip to content

Commit 64196ad

Browse files
authored
Tests: Mock revoking build API key? (#10491)
Mock revoking the API key?
1 parent 6f394fd commit 64196ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readthedocs/projects/tests/mockers.py

+5
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,8 @@ def _mock_api(self):
262262
f'{settings.SLUMBER_API_HOST}/api/v2/project/{self.project.pk}/',
263263
status_code=201,
264264
)
265+
266+
self.requestsmock.post(
267+
f"{settings.SLUMBER_API_HOST}/api/v2/revoke/",
268+
status_code=204,
269+
)

0 commit comments

Comments
 (0)