Open swt2public opened 7 years ago
Given a tweet "1+1", Then the bot's answer should contain "2".
test.py
in the IDLEdef test_math1(self): response = reply({'text': '1+1', 'user': {'screen_name': 'TestUser'}}) self.assertTrue("2" in response)
from tweet_text import idle_text, reply
at the top of the filetweet_text.py
Expected response containing "2",
but gotNone
Given a tweet "1+1", Then the bot's answer should contain "2".
Hints
test.py
in the IDLEfrom tweet_text import idle_text, reply
at the top of the filetweet_text.py