Move apiKey out of test files.

This commit is contained in:
spline 2014-10-12 05:57:25 -04:00
parent 92a3807bcc
commit c88f7e5f8d

View File

@ -6,13 +6,15 @@
###
from supybot.test import *
import os
class WeatherTestCase(PluginTestCase):
plugins = ('Weather',)
def setUp(self):
PluginTestCase.setUp(self)
conf.supybot.plugins.Weather.apiKey.setValue('fc7cb609a45365fa')
apiKey = os.environ.get('apiKey')
conf.supybot.plugins.Weather.apiKey.setValue(apiKey)
def testWeather(self):
self.assertSnarfResponse('reload Weather', 'The operation succeeded.')