mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Skip TweetResultByRestId tests on CI (CF block)
This commit is contained in:
parent
d8c1c98329
commit
a68b57629a
3 changed files with 14 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue