Exemplo n.º 1
0
def test_weather():
    regex = u'Lappeenranta, FI: Temperature: \d+.\d\xb0C, feels like: \d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%'
    check_re(regex, module_openweather.command_weather(bot, None, "#channel", 'lappeenranta')[1])
Exemplo n.º 2
0
def test_weather():
    regex = u'(Lappeenranta, (Finland|FI): Temperature: -?\d+.\d\xb0C, feels like: -?\d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%)|(Error: API error.)'
    check_re(regex, module_openweather.command_weather(bot, None, "#channel", 'lappeenranta')[1])
Exemplo n.º 3
0
def test_weather():
    regex = u'(Lappeenranta, (Finland|FI): Temperature: -?\d+.\d\xb0C, feels like: -?\d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%)|(Error: API error.)'
    check_re(
        regex,
        module_openweather.command_weather(bot, None, "#channel",
                                           'lappeenranta')[1])