Skip to content
Snippets Groups Projects
Commit e98968aa authored by Petit Victor's avatar Petit Victor
Browse files

plus de tests, commentaires

parent ab338017
No related branches found
No related tags found
No related merge requests found
import pytest
import visual_recognition_challenge.twitter_to_images as tti
def test_collect_image_url():
# on teste avec un tweet ayant un message unique, et une image
image_url, texte, id = tti.collect_image_url("Un_tweet_tout_à_fait_standart_avec_une_image")[0]
texte = tti.vrai_texte(texte)
assert image_url == 'http://pbs.twimg.com/media/DsixXJ9XoAkM7LY.png'
assert texte == "Un_tweet_tout_à_fait_standart_avec_une_image"
assert id == 1062337333138284544
def test_vrai_texte():
texte = "RT @arnaque : ceci est un test"
......@@ -60,4 +72,3 @@ def test_collect_text_mots():
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment