fix tests, also correct erroneous help for tfwev

master
echarlie 2017-11-04 12:32:54 -04:00
parent 30167a5b4d
commit f6d9e17b4d
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class TestTfw(unittest.TestCase):
tfw.tfw(self.phenny, input) tfw.tfw(self.phenny, input)
self.phenny.say.assert_called_once_with( self.phenny.say.assert_called_once_with(
"WHERE THE FUCK IS THAT? Try another location.") "WHERE THE FUCK IS THAT? I guess you might think it's a place, but no one else does. Try again.")
def test_celsius(self): def test_celsius(self):
input = Mock(group=lambda x: '24060') input = Mock(group=lambda x: '24060')

View File

@ -280,7 +280,7 @@ def tfwc(phenny, input):
tfwc.rule = (['tfwc'], r'(.*)') tfwc.rule = (['tfwc'], r'(.*)')
def tfwev(phenny, input): def tfwev(phenny, input):
""".tfwc <city/zip> - The fucking weather, in fucking degrees celsius.""" """.tfwev <city/zip> - The fucking weather, in fucking electron volts."""
return tfw(phenny, input, mev=True) return tfw(phenny, input, mev=True)
tfwev.rule = (['tfwev'], r'(.*)') tfwev.rule = (['tfwev'], r'(.*)')