More bugfixes

This commit is contained in:
Dylan
2024-05-02 19:42:21 +01:00
parent 0858f6263b
commit 2d51ac1671
6 changed files with 40 additions and 16 deletions

View File

@ -158,4 +158,15 @@ def test_embed_mixedMedia():
assert img1 in str(resp.data) and img2 not in str(resp.data)
resp = client.get(testMixedMediaTweet.replace("https://twitter.com","")+"/2",headers={"User-Agent":"test"})
assert resp.status_code==200
assert img1 not in str(resp.data) and img2 in str(resp.data)
assert img1 not in str(resp.data) and img2 in str(resp.data)
def test_embed_poll():
resp = client.get(testPollTweet.replace("https://twitter.com",""),headers={"User-Agent":"test"})
assert resp.status_code==200
assert "Mean one thing" in str(resp.data)
assert "78.82%" in str(resp.data)
def test_embed_stripLastUrl():
resp = client.get(testMediaTweet.replace("https://twitter.com",""),headers={"User-Agent":"test"})
assert resp.status_code==200
assert "HgLAbiXw2E" not in str(resp.data)