(self, encrypt)
| 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): |
nothing calls this directly
no test coverage detected