MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testCreateRepoActionsSecret

Method testCreateRepoActionsSecret

tests/Repository.py:2308–2313  ·  view source on GitHub ↗
(self, encrypt)

Source from the content-addressed store, hash-verified

2306
2307 @mock.patch("github.PublicKey.encrypt")
2308 def testCreateRepoActionsSecret(self, encrypt):
2309 repo = self.g.get_repo("demoorg/demo-repo-1")
2310 # encrypt returns a non-deterministic value, we need to mock it so the replay data matches
2311 encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
2312 secret = repo.create_secret("secret_name", "secret-value", "actions")
2313 self.assertIsNotNone(secret)
2314
2315 @mock.patch("github.PublicKey.encrypt")
2316 def testCreateRepoDependabotSecret(self, encrypt):

Callers

nothing calls this directly

Calls 2

get_repoMethod · 0.45
create_secretMethod · 0.45

Tested by

no test coverage detected