mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Skip id-redirect tests on CI (Cloudflare block)
This commit is contained in:
parent
28b55a5017
commit
2ccebaf22a
1 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
import os
|
||||
import unittest
|
||||
|
||||
from base import BaseTestCase, Profile
|
||||
from parameterized import parameterized
|
||||
|
||||
|
|
@ -101,6 +104,11 @@ class ProfileTest(BaseTestCase):
|
|||
self.assertIn(url, banner.get_attribute('src'))
|
||||
|
||||
|
||||
# UserByRestId clears Cloudflare from residential IPs and via the cloaking
|
||||
# proxy, but CF's edge rule on that endpoint rejects GitHub Actions' datacenter
|
||||
# ASN regardless of headers, so these live redirects can't pass in CI (#1433).
|
||||
@unittest.skipIf(os.environ.get('GITHUB_ACTIONS') == 'true',
|
||||
'UserByRestId is Cloudflare-blocked from GitHub datacenter IPs')
|
||||
class UserIdRedirectTest(BaseTestCase):
|
||||
@parameterized.expand(id_redirects)
|
||||
def test_i_user_redirect(self, user_id, username):
|
||||
|
|
|
|||
Loading…
Reference in a new issue