Re-implement txt functionality

This commit is contained in:
Dylan
2024-06-22 20:10:31 +01:00
parent ee5c93fe6d
commit 165ae08300
8 changed files with 124 additions and 20 deletions

View File

@ -173,4 +173,14 @@ def test_embed_stripLastUrl():
def test_embed_no_username():
resp = client.get(testMediaTweet.replace("/pdxdylan",""),headers={"User-Agent":"test"})
assert resp.status_code==200
assert resp.status_code==200
def test_embed_txt():
resp = client.get(testTextTweet.replace("https://twitter.com","")+".txt",headers={"User-Agent":"test"})
assert resp.status_code==200
assert testTextTweet_compare["text"] in str(resp.data)
def test_embed_rtf():
resp = client.get(testTextTweet.replace("https://twitter.com","")+".rtf",headers={"User-Agent":"test"})
assert resp.status_code==200
assert testTextTweet_compare["text"] in str(resp.data)