MCPcopy
hub / github.com/gitcoinco/web / test_revoke_token

Method test_revoke_token

app/git/tests/test_utils.py:85–93  ·  view source on GitHub ↗

Test the github utility revoke_token method.

(self)

Source from the content-addressed store, hash-verified

83
84 @responses.activate
85 def test_revoke_token(self):
86 """Test the github utility revoke_token method."""
87 auth_dict = build_auth_dict(self.user_oauth_token)
88 url = TOKEN_URL.format(**auth_dict)
89 responses.add(responses.DELETE, url, headers=HEADERS, status=204)
90 result = revoke_token(self.user_oauth_token)
91
92 assert responses.calls[0].request.url == url
93 assert result is True
94
95 @responses.activate
96 def test_reset_token(self):

Callers

nothing calls this directly

Calls 3

build_auth_dictFunction · 0.90
revoke_tokenFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected