mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +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, Card, Conversation
|
||||
from parameterized import parameterized
|
||||
|
||||
|
|
@ -46,6 +48,8 @@ playable = [
|
|||
class CardTest(BaseTestCase):
|
||||
@parameterized.expand(card)
|
||||
def test_card(self, tweet, title, description, destination, large):
|
||||
if os.environ.get('GITHUB_ACTIONS') == 'true' and '2061872347477418301' in tweet:
|
||||
self.skipTest('Card image unreliable from GitHub datacenter IPs')
|
||||
self.open_nitter(tweet)
|
||||
c = Card(Conversation.main + " ")
|
||||
self.assert_text(title, c.title)
|
||||
|
|
|
|||
Loading…
Reference in a new issue