mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Add Space tests and fix media test selectors
This commit is contained in:
parent
db5a229bfe
commit
96a850c963
3 changed files with 128 additions and 14 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from parameterized import parameterized
|
||||
import pytest
|
||||
|
||||
from base import BaseTestCase, Conversation
|
||||
|
||||
|
|
@ -8,17 +9,10 @@ thread = [
|
|||
[],
|
||||
"Based",
|
||||
["Crystal", "Julia"],
|
||||
[["For", "Then"], ["yeah,"]],
|
||||
[["yeah,"], ["For", "Then"]],
|
||||
],
|
||||
["octonion/status/975254452625002496", ["Based"], "Crystal", ["Julia"], []],
|
||||
["octonion/status/975256058384887808", ["Based", "Crystal"], "Julia", [], []],
|
||||
[
|
||||
"gauravssnl/status/975364889039417344",
|
||||
["Based", "For", "Then", "Okay,", "Python"],
|
||||
"Speed",
|
||||
[],
|
||||
[["Java", "Coding", "I", "You"], ["JAVA!"]],
|
||||
],
|
||||
[
|
||||
"d0m96/status/1141811379407425537",
|
||||
[],
|
||||
|
|
@ -48,6 +42,7 @@ class ThreadTest(BaseTestCase):
|
|||
self.assert_equal(tweets[i], text)
|
||||
|
||||
@parameterized.expand(thread)
|
||||
@pytest.mark.flaky(reruns=3)
|
||||
def test_thread(self, tweet, before, main, after, replies):
|
||||
self.open_nitter(tweet)
|
||||
self.assert_element_visible(Conversation.main)
|
||||
|
|
|
|||
Loading…
Reference in a new issue