Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Enrico Minack <github@enrico.minack.dev>
  • Loading branch information
thomascrowley and EnricoMi committed Feb 8, 2024
1 parent 53c9ba4 commit 4573b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,10 @@ def testGetVariables(self):

@mock.patch("github.PublicKey.encrypt")
def testCreateActionsSecret(self, encrypt):
self.org = self.g.get_organization("demoorg")
org = self.g.get_organization("demoorg")
# encrypt returns a non-deterministic value, we need to mock it so the replay data matches
encrypt.return_value = "M+5Fm/BqTfB90h3nC7F3BoZuu3nXs+/KtpXwxm9gG211tbRo0F5UiN0OIfYT83CKcx9oKES9Va4E96/b"
secret = self.org.create_secret("secret_name", "secret-value", visibility="all")
secret = org.create_secret("secret_name", "secret-value", visibility="all")
self.assertIsNotNone(secret)

@mock.patch("github.PublicKey.encrypt")
Expand Down

0 comments on commit 4573b2e

Please sign in to comment.