Skip to content

Commit

Permalink
Change: Run no signing key test only on CI
Browse files Browse the repository at this point in the history
The test changes the user's git config if a signing key has been set. To
avoid changing the git config run the test only on CI.
  • Loading branch information
bjoernricks committed Apr 14, 2023
1 parent aace375 commit a10fabd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/release/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import contextlib
import os
import subprocess
import unittest
from pathlib import Path
Expand Down Expand Up @@ -61,6 +62,7 @@ def test_find_signing_key(self):
signing_key, "1234567890ABCEDEF1234567890ABCEDEF123456"
)

@unittest.skipUnless(os.environ.get("CI"), "only run on CI")
def test_find_no_signing_key(self):
terminal = MagicMock()
saved_key = None
Expand Down

0 comments on commit a10fabd

Please sign in to comment.