Skip to content

Commit

Permalink
Skip a part of a test if running on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kataiser committed Dec 18, 2024
1 parent 6d84a31 commit 98f7af0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TF2 Rich Presence/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,10 @@ def test_update_checker(self):
self.assertTrue(downloads_url.startswith('https://github.com/Kataiser/tf2-rich-presence/releases/tag/v'))
self.assertTrue(len(changelog) > 0)

with self.assertRaises(requests.Timeout):
update_checker.initiate_update_check(False, timeout=0.0001)
update_checker.api_future.result()
if os.environ.get('GITHUB_ACTIONS') != 'true':
with self.assertRaises(requests.Timeout):
update_checker.initiate_update_check(False, timeout=0.0001)
update_checker.api_future.result()

def test_format_changelog(self):
unformatted = "## Changes\n" \
Expand Down

0 comments on commit 98f7af0

Please sign in to comment.