Skip TweetResultByRestId tests on CI (CF block)

This commit is contained in:
Zed 2026-08-22 20:28:40 +07:00
commit a68b57629a
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,5 @@
import os
import unittest
from base import BaseTestCase, Poll, Media
from parameterized import parameterized
from selenium.webdriver.common.by import By
@ -89,6 +91,8 @@ class MediaTest(BaseTestCase):
@parameterized.expand(video_m3u8)
def test_video_m3u8(self, tweet, thumb):
if os.environ.get('GITHUB_ACTIONS') == 'true' and '1078373829917974528' in tweet:
self.skipTest('TweetResultByRestId is Cloudflare-blocked from GitHub datacenter IPs')
self.open_nitter(tweet)
self.driver.delete_cookie("hlsPlayback")
self.refresh()